Tag container image with latest instead of branch

This commit is contained in:
Hornwitser 2025-02-28 00:22:58 +01:00
parent e1af97e5e2
commit e3210afe3a

View file

@ -27,18 +27,13 @@ jobs:
tee -a ${GITHUB_OUTPUT} <<EOF
DEPLOY_IMAGE=${{ env.REGISTRY_IMAGE }}:${{ github.ref_name }}
DEPLOY_BRANCH=${{ github.ref_name }}
TAGS<<EOT
$(
echo ${{ env.REGISTRY_IMAGE }}:${{ github.ref_name }}
)
EOT
EOF
-
name: Build and push
uses: docker/build-push-action@v6
with:
push: true
tags: ${{ steps.info.outputs.TAGS }}
tags: ${{ env.REGISTRY_IMAGE }}:latest
outputs:
DEPLOY_IMAGE: ${{ steps.info.outputs.DEPLOY_IMAGE }}
DEPLOY_BRANCH: ${{ steps.info.outputs.DEPLOY_BRANCH }}