From 66c057d3a507eac5b01117a42d7e59fa3538a9f3 Mon Sep 17 00:00:00 2001 From: Ruben Nijveld Date: Wed, 29 May 2024 14:30:56 +0200 Subject: [PATCH] Switch to composite workflow for building container image --- .github/workflows/docker.yml | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index c40e30e..1084717 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -17,13 +17,19 @@ jobs: - version: bullseye latest: false alt: oldstable - uses: "tweedegolf/actions-helpers/.github/workflows/container-image.yml@main" - with: - push: ${{ github.ref == 'refs/heads/main' }} - platforms: "linux/amd64,linux/arm64" - build-args: | - DEBIAN_VERSION=${{matrix.version}} - tags: | - ghcr.io/tweedegolf/debian:${{matrix.version}} - ghcr.io/tweedegolf/debian:${{matrix.alt}} - ${{ matrix.latest && 'ghcr.io/tweedegolf/debian:latest' || '' }} + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 + + - name: Build the base image + uses: tweedegolf/build-container-image@main + with: + token: ${{ secrets.GITHUB_TOKEN }} + push: ${{ github.ref == 'refs/heads/main' }} + platforms: "linux/amd64,linux/arm64" + build-args: | + DEBIAN_VERSION=${{matrix.version}} + tags: | + ghcr.io/tweedegolf/debian:${{matrix.version}} + ghcr.io/tweedegolf/debian:${{matrix.alt}} + ${{ matrix.latest && 'ghcr.io/tweedegolf/debian:latest' || '' }}