Files
p2pool-docker/.github/workflows/build-image-on-push.yml
dependabot[bot] 46a1067577 Bump the dependency-updates group across 1 directory with 2 updates
Bumps the dependency-updates group with 2 updates in the / directory: [docker/build-push-action](https://github.com/docker/build-push-action) and [docker/metadata-action](https://github.com/docker/metadata-action).


Updates `docker/build-push-action` from 6.19.2 to 7.0.0
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/v6.19.2...v7.0.0)

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

---
updated-dependencies:
- dependency-name: docker/build-push-action
  dependency-version: 7.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: dependency-updates
- dependency-name: docker/metadata-action
  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>
2026-03-06 20:42:38 +00:00

61 lines
1.7 KiB
YAML

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@v4.0.0
-
name: Checkout repository
uses: actions/checkout@v6
-
name: Test build of image
id: build
uses: docker/build-push-action@v7.0.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