public-pool/.github/workflows/build-image-on-push.yml
Seth For Privacy 8f6eeaba73
Dockerfile improvements and automatic Github Actions builds (#14)
* Initial GA push

* Fix Actions

* Remove test runs

* Update Trivy scanner to latest syntax

* Remove unnecessary build stage

* Switch to slim base images

* Minor Dockerfile improvements

* Fix slim builds

* Fix slim builds round 2
2023-12-12 20:11:36 -05:00

36 lines
863 B
YAML

name: "Test build of image when Dockerfile is changed"
on:
push:
branches-ignore:
- master
pull_request:
workflow_dispatch:
jobs:
rebuild-container:
name: "Build image with cache"
runs-on: ubuntu-latest
steps:
-
name: Set up QEMU
uses: docker/setup-qemu-action@v3.0.0
with:
platforms: linux/arm64
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3.0.0
-
name: Checkout repository
uses: actions/checkout@v4
-
name: Build image
id: docker_build_amd64
uses: docker/build-push-action@v5.1.0
with:
push: false
load: true
platforms: linux/amd64
tags: public-pool:amd64
cache-from: type=registry,ref=${{ secrets.DOCKER_USERNAME }}/public-pool:latest