Compare commits

...

65 Commits

Author SHA1 Message Date
Seth For Privacy
37d68bc1bd Merge pull request #130 from sethforprivacy/renovate/actions-checkout-6.x
Update actions/checkout action to v6
2025-11-20 13:25:41 -05:00
renovate[bot]
dae74873c4 Update actions/checkout action to v6 2025-11-20 17:46:57 +00:00
Seth For Privacy
d37c6f7bdf Bump to v4.12 2025-11-05 13:26:05 -05:00
Seth For Privacy
84ebde54dd Merge pull request #128 from sethforprivacy/renovate/actions-download-artifact-6.x 2025-10-26 12:35:08 -04:00
Seth For Privacy
e834b7e289 Merge pull request #127 from sethforprivacy/dependabot/github_actions/dependency-updates-3249c11fdc 2025-10-26 12:34:54 -04:00
renovate[bot]
389cc18843 Update actions/download-artifact action to v6 2025-10-24 20:02:31 +00:00
dependabot[bot]
93c985963a Bump the dependency-updates group with 2 updates
Bumps the dependency-updates group with 2 updates: [actions/upload-artifact](https://github.com/actions/upload-artifact) and [actions/download-artifact](https://github.com/actions/download-artifact).


Updates `actions/upload-artifact` from 4 to 5
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v4...v5)

Updates `actions/download-artifact` from 5 to 6
- [Release notes](https://github.com/actions/download-artifact/releases)
- [Commits](https://github.com/actions/download-artifact/compare/v5...v6)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: dependency-updates
- dependency-name: actions/download-artifact
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: dependency-updates
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-24 20:02:11 +00:00
Seth For Privacy
8d209c335a Merge pull request #126 from sethforprivacy/renovate/docker-login-action-3.x
Update docker/login-action action to v3.6.0
2025-09-29 09:02:37 -04:00
renovate[bot]
2baed31844 Update docker/login-action action to v3.6.0 2025-09-29 10:52:23 +00:00
Seth For Privacy
c591b338f3 Update docker-compose.yml 2025-09-28 09:08:39 -04:00
Seth For Privacy
a1a95d5294 Bump to v4.11 2025-09-27 09:21:18 -04:00
Seth For Privacy
0bc7dba09d Bump to v4.10.1 2025-09-10 06:53:06 -04:00
Seth For Privacy
49019ab2f9 Bump to v4.10 2025-09-09 05:37:30 -04:00
Seth For Privacy
53c1baaaf2 Bump to v4.9.1 2025-08-21 07:19:45 -04:00
Seth For Privacy
1fdd47de76 Merge pull request #123 from sethforprivacy/dependabot/github_actions/dependency-updates-7921bc0373
Bump the dependency-updates group across 1 directory with 2 updates
2025-08-12 13:26:14 -04:00
dependabot[bot]
f2a46b8a21 Bump the dependency-updates group across 1 directory with 2 updates
Bumps the dependency-updates group with 2 updates in the / directory: [actions/checkout](https://github.com/actions/checkout) and [actions/download-artifact](https://github.com/actions/download-artifact).


Updates `actions/checkout` from 4 to 5
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v4...v5)

Updates `actions/download-artifact` from 4 to 5
- [Release notes](https://github.com/actions/download-artifact/releases)
- [Commits](https://github.com/actions/download-artifact/compare/v4...v5)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: dependency-updates
- dependency-name: actions/download-artifact
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: dependency-updates
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-12 04:39:58 +00:00
Seth For Privacy
679ac1e87e Merge pull request #119 from sethforprivacy/renovate/docker-login-action-3.x
Update docker/login-action action to v3.5.0
2025-08-04 13:07:04 -04:00
renovate[bot]
cbf7fbfb7e Update docker/login-action action to v3.5.0 2025-08-04 16:36:05 +00:00
Seth For Privacy
382708175c Bump to v4.9 2025-07-23 19:58:59 -04:00
Seth For Privacy
e4d02db831 Merge pull request #118 from levinster82/main
Update README.md
2025-07-01 05:48:05 -04:00
levinster82
ef64a6db7d Update README.md
update docker run example from unmaintained docker hub image to ghcr image
2025-06-30 18:18:33 -04:00
Seth For Privacy
d3a1a704b8 Update README.md 2025-06-26 05:50:35 -04:00
Seth For Privacy
8178e7df3e Update Dockerfile 2025-06-26 05:49:55 -04:00
Seth For Privacy
9b158c86c2 Merge pull request #117 from sethforprivacy/renovate/docker-setup-buildx-action-3.x
Update docker/setup-buildx-action action to v3.11.1
2025-06-18 09:19:44 -04:00
renovate[bot]
031bd91913 Update docker/setup-buildx-action action to v3.11.1 2025-06-18 11:01:02 +00:00
Seth For Privacy
2bd817c6c2 Merge pull request #116 from sethforprivacy/renovate/docker-setup-buildx-action-3.x
Update docker/setup-buildx-action action to v3.11.0
2025-06-16 14:04:09 -04:00
renovate[bot]
b77b8d9d7c Update docker/setup-buildx-action action to v3.11.0 2025-06-16 17:41:06 +00:00
Seth For Privacy
f34b0b4e7a Merge pull request #115 from hundehausen/patch-13
Bump p2pool to v4.8
2025-06-16 06:44:58 -04:00
hundehausen
77f6cd5311 Bump p2pool to v4.8 2025-06-15 17:30:43 +02:00
Seth For Privacy
9719c48897 Merge pull request #114 from hundehausen/patch-13
Bump p2pool to v4.7
2025-05-30 11:36:11 -04:00
hundehausen
2290ddb6b9 Bump to v4.7 2025-05-30 08:38:12 +02:00
Seth For Privacy
843f97b1cf Merge pull request #113 from sethforprivacy/dependabot/github_actions/dependency-updates-eb4bd8a3a6
Bump docker/build-push-action from 6.17.0 to 6.18.0 in the dependency-updates group
2025-05-28 21:20:33 -04:00
dependabot[bot]
6945b17b5d Bump docker/build-push-action in the dependency-updates group
Bumps the dependency-updates group with 1 update: [docker/build-push-action](https://github.com/docker/build-push-action).


Updates `docker/build-push-action` from 6.17.0 to 6.18.0
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/v6.17.0...v6.18.0)

---
updated-dependencies:
- dependency-name: docker/build-push-action
  dependency-version: 6.18.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: dependency-updates
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-05-27 20:53:03 +00:00
Seth For Privacy
df89ed309f Merge pull request #111 from hundehausen/patch-13
Bump to v4.6
2025-05-18 07:30:32 -04:00
hundehausen
f181dbcd59 Bump to v4.6 2025-05-18 09:52:13 +02:00
Seth For Privacy
89ca118508 Merge pull request #110 from sethforprivacy/renovate/docker-build-push-action-6.x
Update docker/build-push-action action to v6.17.0
2025-05-15 13:09:30 -04:00
renovate[bot]
9d6980c6d2 Update docker/build-push-action action to v6.17.0 2025-05-15 13:37:56 +00:00
Seth For Privacy
501a27001b Merge pull request #109 from hundehausen/patch-12
Bump to v4.5
2025-05-04 07:34:31 -04:00
hundehausen
35a6c3a3ed Bump to v4.5 2025-05-04 09:05:48 +02:00
Seth For Privacy
bfe73f3409 Merge pull request #108 from sethforprivacy/renovate/docker-build-push-action-6.x
Update docker/build-push-action action to v6.16.0
2025-04-24 14:12:37 -04:00
renovate[bot]
9925a8d336 Update docker/build-push-action action to v6.16.0 2025-04-24 14:49:14 +00:00
Seth For Privacy
c699d76908 Merge pull request #107 from sethforprivacy/renovate/docker-login-action-3.x
Update docker/login-action action to v3.4.0
2025-03-14 20:17:24 -04:00
renovate[bot]
ee90239c6b Update docker/login-action action to v3.4.0 2025-03-14 20:45:55 +00:00
Seth For Privacy
28104934af Bump to v4.4 2025-03-01 15:05:35 -05:00
Seth For Privacy
d2494e9deb Merge pull request #105 from sethforprivacy/dependabot/github_actions/dependency-updates-93cde54b9c
Bump the dependency-updates group with 2 updates
2025-02-26 16:09:00 -05:00
dependabot[bot]
76b1d9164c Bump the dependency-updates group with 2 updates
Bumps the dependency-updates group with 2 updates: [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action) and [docker/build-push-action](https://github.com/docker/build-push-action).


Updates `docker/setup-buildx-action` from 3.9.0 to 3.10.0
- [Release notes](https://github.com/docker/setup-buildx-action/releases)
- [Commits](https://github.com/docker/setup-buildx-action/compare/v3.9.0...v3.10.0)

Updates `docker/build-push-action` from 6.14.0 to 6.15.0
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/v6.14.0...v6.15.0)

---
updated-dependencies:
- dependency-name: docker/setup-buildx-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: dependency-updates
- dependency-name: docker/build-push-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: dependency-updates
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-02-26 20:30:43 +00:00
Seth For Privacy
ec715061c0 Allow manual Actions runs 2025-02-19 15:30:05 -05:00
Seth For Privacy
90af90e29a Fix p2pool version tag images 2025-02-19 15:29:20 -05:00
Seth For Privacy
9b66c26a8d Merge pull request #104 from sethforprivacy/dependabot/github_actions/dependency-updates-f02b80db45
Bump docker/build-push-action from 6.13.0 to 6.14.0 in the dependency-updates group
2025-02-19 15:27:58 -05:00
dependabot[bot]
ba800e4da7 Bump docker/build-push-action in the dependency-updates group
Bumps the dependency-updates group with 1 update: [docker/build-push-action](https://github.com/docker/build-push-action).


Updates `docker/build-push-action` from 6.13.0 to 6.14.0
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/v6.13.0...v6.14.0)

---
updated-dependencies:
- dependency-name: docker/build-push-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: dependency-updates
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-02-19 20:02:59 +00:00
Seth For Privacy
00fe0b7e4d Fix test run of images 2025-02-07 12:02:33 -05:00
Seth For Privacy
38772276a6 Migrate to native architecture runners for Github Actions builds and add test build workflow for PRs 2025-02-07 11:32:30 -05:00
Seth For Privacy
a980dba152 Merge pull request #103 from sethforprivacy/dependabot/github_actions/dependency-updates-4ce3feb040
Bump the dependency-updates group with 2 updates
2025-02-07 07:11:24 -05:00
dependabot[bot]
7bb6b1b7d5 Bump the dependency-updates group with 2 updates
Bumps the dependency-updates group with 2 updates: [docker/setup-qemu-action](https://github.com/docker/setup-qemu-action) and [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action).


Updates `docker/setup-qemu-action` from 3.3.0 to 3.4.0
- [Release notes](https://github.com/docker/setup-qemu-action/releases)
- [Commits](https://github.com/docker/setup-qemu-action/compare/v3.3.0...v3.4.0)

Updates `docker/setup-buildx-action` from 3.8.0 to 3.9.0
- [Release notes](https://github.com/docker/setup-buildx-action/releases)
- [Commits](https://github.com/docker/setup-buildx-action/compare/v3.8.0...v3.9.0)

---
updated-dependencies:
- dependency-name: docker/setup-qemu-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: dependency-updates
- dependency-name: docker/setup-buildx-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: dependency-updates
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-02-06 20:31:04 +00:00
Seth For Privacy
985a39cb05 Merge pull request #102 from sethforprivacy/dependabot/github_actions/dependency-updates-2741f241c8
Bump docker/build-push-action from 6.12.0 to 6.13.0 in the dependency-updates group
2025-01-25 07:53:21 -05:00
dependabot[bot]
011112e362 Bump docker/build-push-action in the dependency-updates group
Bumps the dependency-updates group with 1 update: [docker/build-push-action](https://github.com/docker/build-push-action).


Updates `docker/build-push-action` from 6.12.0 to 6.13.0
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/v6.12.0...v6.13.0)

---
updated-dependencies:
- dependency-name: docker/build-push-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: dependency-updates
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-01-24 20:01:51 +00:00
Seth For Privacy
fe73634e36 Merge pull request #101 from sethforprivacy/dependabot/github_actions/dependency-updates-3e01918a24
Bump docker/build-push-action from 6.11.0 to 6.12.0 in the dependency-updates group
2025-01-17 10:50:50 -05:00
dependabot[bot]
bd18fb8337 Bump docker/build-push-action in the dependency-updates group
Bumps the dependency-updates group with 1 update: [docker/build-push-action](https://github.com/docker/build-push-action).


Updates `docker/build-push-action` from 6.11.0 to 6.12.0
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/v6.11.0...v6.12.0)

---
updated-dependencies:
- dependency-name: docker/build-push-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: dependency-updates
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-01-15 20:40:05 +00:00
Seth For Privacy
7f7693b836 Merge pull request #100 from sethforprivacy/dependabot/github_actions/dependency-updates-c2b1a29632
Bump the dependency-updates group with 2 updates
2025-01-08 21:11:30 -05:00
dependabot[bot]
be951a1c42 Bump the dependency-updates group with 2 updates
Bumps the dependency-updates group with 2 updates: [docker/setup-qemu-action](https://github.com/docker/setup-qemu-action) and [docker/build-push-action](https://github.com/docker/build-push-action).


Updates `docker/setup-qemu-action` from 3.2.0 to 3.3.0
- [Release notes](https://github.com/docker/setup-qemu-action/releases)
- [Commits](https://github.com/docker/setup-qemu-action/compare/v3.2.0...v3.3.0)

Updates `docker/build-push-action` from 6.10.0 to 6.11.0
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/v6.10.0...v6.11.0)

---
updated-dependencies:
- dependency-name: docker/setup-qemu-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: dependency-updates
- dependency-name: docker/build-push-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: dependency-updates
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-01-08 20:55:15 +00:00
Seth For Privacy
37c8d08d56 Bump to v4.3 2024-12-30 18:55:44 +00:00
Seth For Privacy
e83c4109ac Merge pull request #99 from sethforprivacy/dependabot/github_actions/dependency-updates-a8eed03185
Bump docker/setup-buildx-action from 3.7.1 to 3.8.0 in the dependency-updates group
2024-12-17 13:56:46 -05:00
dependabot[bot]
0746b4b33d Bump docker/setup-buildx-action in the dependency-updates group
Bumps the dependency-updates group with 1 update: [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action).


Updates `docker/setup-buildx-action` from 3.7.1 to 3.8.0
- [Release notes](https://github.com/docker/setup-buildx-action/releases)
- [Commits](https://github.com/docker/setup-buildx-action/compare/v3.7.1...v3.8.0)

---
updated-dependencies:
- dependency-name: docker/setup-buildx-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: dependency-updates
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-12-16 20:25:26 +00:00
Seth For Privacy
355802e65d Merge pull request #98 from sethforprivacy/dependabot/github_actions/dependency-updates-25399bd403
Bump docker/build-push-action from 6.9.0 to 6.10.0 in the dependency-updates group
2024-11-27 05:51:14 -05:00
dependabot[bot]
9f6c19d9bd Bump docker/build-push-action in the dependency-updates group
Bumps the dependency-updates group with 1 update: [docker/build-push-action](https://github.com/docker/build-push-action).


Updates `docker/build-push-action` from 6.9.0 to 6.10.0
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/v6.9.0...v6.10.0)

---
updated-dependencies:
- dependency-name: docker/build-push-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: dependency-updates
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-11-26 20:09:08 +00:00
6 changed files with 167 additions and 102 deletions

View File

@@ -0,0 +1,60 @@
name: "Test build of image when Dockerfile is changed"
on:
push:
paths:
- 'Dockerfile'
branches-ignore:
- main
pull_request:
paths:
- 'Dockerfile'
workflow_dispatch:
env:
GHCR_REPO: ghcr.io/${{ github.repository_owner }}/p2pool
jobs:
rebuild-container:
name: "Build image with cache"
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- ubuntu-24.04-arm
runs-on: ${{ matrix.os }}
steps:
- name: Prepare platform matrix for arm64
if: runner.arch == 'ARM64'
run: |
echo "PLATFORM=linux/arm64" >> $GITHUB_ENV
echo "DIGEST_NAME=arm64" >> $GITHUB_ENV
- name: Prepare platform matrix for amd64
if: runner.arch == 'X64'
run: |
echo "PLATFORM=linux/amd64" >> $GITHUB_ENV
echo "DIGEST_NAME=amd64" >> $GITHUB_ENV
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3.11.1
-
name: Checkout repository
uses: actions/checkout@v6
-
name: Test build of image
id: build
uses: docker/build-push-action@v6.18.0
with:
push: false
load: true
platforms: ${{ env.PLATFORM }}
tags: p2pool:testing
cache-from: type=registry,ref=${{ env.GHCR_REPO }}:latest
-
name: Test-run image
run: |
docker run --rm p2pool:testing --wallet 468ydghFfthE3UTc53eF5MP9UyrMcUiAHP5kizVYJsej5XGaXBoAAEzUHCcUF7t3E3RrYAX8Rs1ujhBdcvMpZSbH8qkb55R &
PID=$!
sleep 30
kill -SIGINT $PID # this will return a non-zero exit code if the container dies early on

View File

@@ -1,37 +0,0 @@
name: Build and scan container for vulnerabilities with Trivy
on:
push:
paths:
- 'Dockerfile'
pull_request:
paths:
- 'Dockerfile'
schedule:
- cron: '22 14 * * 0'
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Build an image from Dockerfile
run: |
docker build -t docker.io/my-organization/my-app:${{ github.sha }} .
- name: Run Trivy vulnerability scanner
uses: aquasecurity/trivy-action@master
with:
image-ref: 'docker.io/my-organization/my-app:${{ github.sha }}'
format: 'template'
template: '@/contrib/sarif.tpl'
output: 'trivy-results.sarif'
severity: 'CRITICAL,HIGH'
- name: Upload Trivy scan results to GitHub Security tab
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: 'trivy-results.sarif'

View File

@@ -6,58 +6,120 @@ on:
- main
paths:
- 'Dockerfile'
workflow_dispatch:
env:
GHCR_REPO: ghcr.io/${{ github.repository_owner }}/p2pool
jobs:
rebuild-container:
name: "Rebuild Container with the latest base image"
runs-on: ubuntu-latest
build:
name: "Build container for multiple architectures and push by digest"
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- ubuntu-24.04-arm
runs-on: ${{ matrix.os }}
steps:
-
name: Prepare outputs
id: prep
- name: Prepare platform matrix for arm64
if: runner.arch == 'ARM64'
run: |
echo "::set-output name=created::$(date -u +'%Y-%m-%dT%H:%M:%SZ')"
-
name: Set up QEMU
uses: docker/setup-qemu-action@v3.2.0
echo "PLATFORM=linux/arm64" >> $GITHUB_ENV
echo "DIGEST_NAME=arm64" >> $GITHUB_ENV
- name: Prepare platform matrix for amd64
if: runner.arch == 'X64'
run: |
echo "PLATFORM=linux/amd64" >> $GITHUB_ENV
echo "DIGEST_NAME=amd64" >> $GITHUB_ENV
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
platforms: linux/arm64
-
images: |
${{ env.GHCR_REPO }}
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3.7.1
uses: docker/setup-buildx-action@v3.11.1
-
name: Login to GitHub Container Registry
uses: docker/login-action@v3.3.0
uses: docker/login-action@v3.6.0
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
-
name: Login to DockerHub
uses: docker/login-action@v3.3.0
name: Checkout repository
uses: actions/checkout@v6
-
name: Build and and push by digest
uses: docker/build-push-action@v6.18.0
id: build
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: "Checkout repository"
uses: "actions/checkout@v4"
-
name: "Get p2pool Release Tag"
id: get_tag
run: echo "::set-output name=tag::$(awk -F "=" '/P2POOL_BRANCH=/ {print $2}' Dockerfile)"
-
name: Build and push to Docker Hub and GitHub Packages Docker Registry
uses: docker/build-push-action@v6.9.0
id: docker_build_push
outputs: type=image,"name=${{ env.GHCR_REPO }}",push-by-digest=true,name-canonical=true,push=true
platforms: ${{ env.PLATFORM }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=registry,ref=${{ env.GHCR_REPO }}:latest
- name: Export digest
run: |
mkdir -p ${{ runner.temp }}/digests
digest="${{ steps.build.outputs.digest }}"
touch "${{ runner.temp }}/digests/${digest#sha256:}"
- name: Upload digest
uses: actions/upload-artifact@v5
with:
push: true
platforms: linux/amd64,linux/arm64
name: digests-${{ env.DIGEST_NAME }}
path: ${{ runner.temp }}/digests/*
if-no-files-found: error
retention-days: 1
merge:
runs-on: ubuntu-latest
needs:
- build
steps:
- name: Download digests
uses: actions/download-artifact@v6
with:
path: ${{ runner.temp }}/digests
pattern: digests-*
merge-multiple: true
- name: Login to GHCR
uses: docker/login-action@v3.6.0
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3.11.1
- name: Checkout repository
uses: actions/checkout@v6
- name: Get p2pool release tag
run: echo P2POOL_TAG="$(awk -F '=' '/P2POOL_BRANCH=/ {print $2}' Dockerfile)" >> $GITHUB_ENV
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: |
${{ env.GHCR_REPO }}
tags: |
ghcr.io/${{ github.repository_owner }}/p2pool:latest
ghcr.io/${{ github.repository_owner }}/p2pool:${{ steps.get_tag.outputs.tag }}
${{ secrets.DOCKER_USERNAME }}/p2pool:latest
${{ secrets.DOCKER_USERNAME }}/p2pool:${{ steps.get_tag.outputs.tag }}
labels: |
org.opencontainers.image.source=${{ github.event.repository.html_url }}
org.opencontainers.image.created=${{ steps.prep.outputs.created }}
org.opencontainers.image.revision=${{ github.sha }}
cache-from: type=registry,ref=${{ secrets.DOCKER_USERNAME }}/simple-monerod:latest
cache-to: type=inline
type=sha
type=raw,value=latest,enable={{is_default_branch}}
type=raw,value=${{ env.P2POOL_TAG }}
- name: Create manifest list and push
working-directory: ${{ runner.temp }}/digests
run: |
docker buildx imagetools create $(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \
$(printf '${{ env.GHCR_REPO }}@sha256:%s ' *)
- name: Inspect image
run: |
docker buildx imagetools inspect ${{ env.GHCR_REPO }}:${{ steps.meta.outputs.version }}

View File

@@ -1,4 +1,4 @@
ARG P2POOL_BRANCH=v4.2
ARG P2POOL_BRANCH=v4.12
# Select latest Ubuntu LTS for the build image base
FROM ubuntu:latest as build

View File

@@ -5,19 +5,9 @@ A simple and straightforward Dockerized [p2pool](https://github.com/SChernykh/p2
[![Daily Update Rebuild](https://github.com/sethsimmons/p2pool-docker//actions/workflows/update-daily.yml/badge.svg)](https://github.com/sethsimmons/p2pool-docker/actions/workflows/update-daily.yml)
[![Weekly Update Rebuild](https://github.com/sethsimmons/p2pool-docker//actions/workflows/update-base-image.yml/badge.svg)](https://github.com/sethsimmons/p2pool-docker/actions/workflows/update-base-image.yml)
[![Latest Dockerfile build](https://github.com/sethsimmons/p2pool-docker//actions/workflows/update-image-on-push.yml/badge.svg)](https://github.com/sethsimmons/p2pool-docker/actions/workflows/update-image-on-push.yml)
[![Container security scan with Trivy](https://github.com/sethsimmons/p2pool-docker//actions/workflows/trivy-analysis.yml/badge.svg)](https://github.com/sethsimmons/p2pool-docker/actions/workflows/trivy-analysis.yml)
## Docker
![Docker Pulls](https://img.shields.io/docker/pulls/sethsimmons/p2pool)
![Docker Image Size (latest by date)](https://img.shields.io/docker/image-size/sethsimmons/p2pool)
![Docker Image Version (latest by date)](https://img.shields.io/docker/v/sethsimmons/p2pool)
# Docker Hub
This repo is used to build the images available at:
https://hub.docker.com/r/sethsimmons/p2pool
This repo is used to build the images available here on GHCR.
# Tags
@@ -28,7 +18,7 @@ https://hub.docker.com/r/sethsimmons/p2pool
*NOTE: Remember to replace the host address with your own node (if desired) as well as the Monero address for the `--wallet` flag, or else you'll be making a kind hashrate donation to me.*
```bash
docker run -d --name="p2pool" -p 3333:3333 -p 37889:37889 -v p2pool-data:/home/p2pool -v /dev/hugepages:/dev/hugepages:rw sethsimmons/p2pool:latest --host 5.9.120.18 --rpc-port 18089 --wallet 468ydghFfthE3UTc53eF5MP9UyrMcUiAHP5kizVYJsej5XGaXBoAAEzUHCcUF7t3E3RrYAX8Rs1ujhBdcvMpZSbH8qkb55R --stratum 0.0.0.0:3333 --p2p 0.0.0.0:37889 --addpeers 65.21.227.114:37889,node.sethforprivacy.com:37889
docker run -d --name="p2pool" -p 3333:3333 -p 37889:37889 -v p2pool-data:/home/p2pool -v /dev/hugepages:/dev/hugepages:rw ghcr.io/sethforprivacy/p2pool:latest --host 5.9.120.18 --rpc-port 18089 --wallet 468ydghFfthE3UTc53eF5MP9UyrMcUiAHP5kizVYJsej5XGaXBoAAEzUHCcUF7t3E3RrYAX8Rs1ujhBdcvMpZSbH8qkb55R --stratum 0.0.0.0:3333 --p2p 0.0.0.0:37889 --addpeers 65.21.227.114:37889,node.sethforprivacy.com:37889
```
# Copyrights

View File

@@ -1,7 +1,6 @@
version: '3.5'
services:
monerod:
image: sethsimmons/simple-monerod:latest
image: ghcr.io/sethforprivacy/simple-monerod:latest
restart: unless-stopped
container_name: monerod
volumes:
@@ -21,7 +20,7 @@ services:
- "--out-peers=50"
p2pool:
image: sethsimmons/p2pool:latest
image: ghcr.io/sethforprivacy/p2pool:latest
restart: unless-stopped
container_name: p2pool
tty: true
@@ -52,15 +51,6 @@ services:
volumes:
- tor-keys:/var/lib/tor/hidden_service/
autoheal:
image: willfarrell/autoheal:latest
container_name: autoheal
restart: unless-stopped
environment:
AUTOHEAL_CONTAINER_LABEL: all
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
watchtower:
image: containrrr/watchtower:latest
container_name: watchtower