mirror of
https://github.com/benjamin-wilson/public-pool.git
synced 2025-03-17 21:31:42 +01:00
* 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
36 lines
863 B
YAML
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
|