From 96226f30f56413121e6a324e4e8f2ff1f8d3a992 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sascha=20B=C3=B6ck?= <47642539+boecks@users.noreply.github.com> Date: Sun, 6 Oct 2024 18:39:08 +0200 Subject: [PATCH] Update build-and-deploy.yml --- .github/workflows/build-and-deploy.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-and-deploy.yml b/.github/workflows/build-and-deploy.yml index 3084ebd..bfa20fe 100644 --- a/.github/workflows/build-and-deploy.yml +++ b/.github/workflows/build-and-deploy.yml @@ -57,7 +57,8 @@ jobs: matrix.platform == 'linux/arm/v7' && 'armv7' || matrix.platform == 'linux/arm/v6' && 'armv6' || 'i386' - }}:${{ github.ref == 'refs/tags/*' && github.ref_name || github.ref == 'refs/heads/main' && 'latest' || github.ref == 'refs/heads/dev' && 'dev' || (github.event_name == 'pull_request' && format('pr-{0}', github.event.number)) || 'dev' }} + }}:${{ github.ref_type == 'tag' && startsWith(github.ref_name, 'v') && github.ref_name || github.ref == 'refs/heads/main' && 'latest' || github.ref == 'refs/heads/dev' && 'dev' || (github.event_name == 'pull_request' && format('pr-{0}', github.event.number)) || 'dev' }} platforms: ${{ matrix.platform }} build-args: | BUILD_FROM=python:3.11-alpine +