Tweaked the Docker image build workflow to properly tag the image based on the repository branch name.

This commit is contained in:
Matt Scott 2023-03-10 18:22:42 -05:00
parent cb929c3265
commit c0f1698a9a

View File

@ -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