Tag container image with latest instead of branch
This commit is contained in:
parent
e1af97e5e2
commit
e3210afe3a
1 changed files with 1 additions and 6 deletions
|
@ -27,18 +27,13 @@ jobs:
|
||||||
tee -a ${GITHUB_OUTPUT} <<EOF
|
tee -a ${GITHUB_OUTPUT} <<EOF
|
||||||
DEPLOY_IMAGE=${{ env.REGISTRY_IMAGE }}:${{ github.ref_name }}
|
DEPLOY_IMAGE=${{ env.REGISTRY_IMAGE }}:${{ github.ref_name }}
|
||||||
DEPLOY_BRANCH=${{ github.ref_name }}
|
DEPLOY_BRANCH=${{ github.ref_name }}
|
||||||
TAGS<<EOT
|
|
||||||
$(
|
|
||||||
echo ${{ env.REGISTRY_IMAGE }}:${{ github.ref_name }}
|
|
||||||
)
|
|
||||||
EOT
|
|
||||||
EOF
|
EOF
|
||||||
-
|
-
|
||||||
name: Build and push
|
name: Build and push
|
||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@v6
|
||||||
with:
|
with:
|
||||||
push: true
|
push: true
|
||||||
tags: ${{ steps.info.outputs.TAGS }}
|
tags: ${{ env.REGISTRY_IMAGE }}:latest
|
||||||
outputs:
|
outputs:
|
||||||
DEPLOY_IMAGE: ${{ steps.info.outputs.DEPLOY_IMAGE }}
|
DEPLOY_IMAGE: ${{ steps.info.outputs.DEPLOY_IMAGE }}
|
||||||
DEPLOY_BRANCH: ${{ steps.info.outputs.DEPLOY_BRANCH }}
|
DEPLOY_BRANCH: ${{ steps.info.outputs.DEPLOY_BRANCH }}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue