Skip to content

Commit

Permalink
Use github.ref_name to extract extract branch name in action
Browse files Browse the repository at this point in the history
  • Loading branch information
dersmon committed May 3, 2024
1 parent 7970906 commit 668a407
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,5 @@ jobs:
with:
context: "backend"
push: true
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.ref == 'refs/heads/stable' && 'stable' || 'latest' }}
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.ref_name }}
labels: ${{ steps.meta.outputs.labels }}

0 comments on commit 668a407

Please sign in to comment.