From a8cf7024b7186f654ca836cde8e53d1f16c6e703 Mon Sep 17 00:00:00 2001 From: Nicolas Ledez Date: Wed, 4 Oct 2023 21:58:52 +0200 Subject: [PATCH] Fix Docker tags #2 --- .github/workflows/python-checks.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/python-checks.yml b/.github/workflows/python-checks.yml index 9397a7c..22c9cda 100644 --- a/.github/workflows/python-checks.yml +++ b/.github/workflows/python-checks.yml @@ -65,6 +65,11 @@ jobs: uses: docker/metadata-action@v5 with: images: cgwire/cgwire-tests + tags: | + type=raw,value=latest,enable={{is_default_branch}} + type=sha,prefix={{branch}}- + type=ref,event=branch + type=ref,event=tag - name: Build and push Docker image if: github.event_name != 'pull_request' uses: docker/build-push-action@v5 @@ -73,8 +78,5 @@ jobs: file: ./Dockerfile platforms: linux/amd64,linux/arm64 push: ${{ github.event_name != 'pull_request' }} - tags: - - latest - - ${{ steps.meta.outputs.tags }} - - ${{ github.sha }} + tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }}