Skip to content

Fix workflow script

Fix workflow script #5

Workflow file for this run

name: Build
permissions:
contents: read
on:
push:
branches:
- main
pull_request:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- version: trixie
latest: false
alt: testing
- version: bookworm
latest: true
alt: stable
- version: bullseye
latest: false
alt: oldstable
steps:
- name: Checkout sources
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Run docker build (latest)
if: ${{ matrix.latest }}
run: |
docker buildx build . \
--push \
--platform linux/amd64,linux/arm64 \
--no-cache \
--pull \
--build-arg "DEBIAN_VERSION=${{matrix.version}}" \
--tag "ghcr.io/tweedegolf/debian:${{matrix.version}}" \
--tag "ghcr.io/tweedegolf/debian:${{matrix.alt}}" \
--tag "ghcr.io/tweedegolf/debian:latest"
- name: Run docker build
if: ${{ !matrix.latest }}
run: |
docker buildx build . \
--push \
--platform linux/amd64,linux/arm64 \
--no-cache \
--pull \
--build-arg "DEBIAN_VERSION=${{matrix.version}}" \
--tag "ghcr.io/tweedegolf/debian:${{matrix.version}}" \
--tag "ghcr.io/tweedegolf/debian:${{matrix.alt}}"