Update docker-image.yml

This commit is contained in:
Thegan Govender
2024-06-14 12:15:25 +02:00
committed by GitHub
parent 05c58f4ab8
commit d7efdb1dfc

View File

@@ -50,5 +50,6 @@ jobs:
- name: Tag image as latest if on main branch
if: github.ref == 'refs/heads/main'
run: |
docker tag ${{ steps.build-image.outputs.tags }} ${{ github.repository }}:latest
IMAGE_NAME=$(echo ${{ steps.meta.outputs.tags }} | cut -d, -f1)
docker tag $IMAGE_NAME ${{ github.repository }}:latest
docker push ${{ github.repository }}:latest