From c0f1698a9af735113d155c28cc7428a2109fada7 Mon Sep 17 00:00:00 2001 From: Matt Scott Date: Fri, 10 Mar 2023 18:22:42 -0500 Subject: [PATCH] Tweaked the Docker image build workflow to properly tag the image based on the repository branch name. --- .github/workflows/build-and-publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-and-publish.yml b/.github/workflows/build-and-publish.yml index 6cb452e..d51920f 100644 --- a/.github/workflows/build-and-publish.yml +++ b/.github/workflows/build-and-publish.yml @@ -47,7 +47,7 @@ jobs: context: ./ file: ./docker/Dockerfile push: true - tags: powerdnsadmin/pda-legacy:latest + tags: powerdnsadmin/pda-legacy:$(git rev-parse --abbrev-ref HEAD | sed 's/[^a-zA-Z0-9]/-/g') - name: Docker Image Release Tagging uses: docker/build-push-action@v2