Skip to content

Commit

Permalink
Update docker-image.yml
Browse files Browse the repository at this point in the history
tag with branch name when not default branch
  • Loading branch information
mroxso authored Feb 9, 2024
1 parent 2097d92 commit b069b79
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ jobs:
images: ${{ env.REGISTRY_NAME }}/${{ github.repository_owner }}/${{ env.IMAGE_NAME }}
tags: |
type=raw,value=latest,enable={{is_default_branch}}
type=branch,value=${{ github.ref_slug }},enable=!{{is_default_branch}}
- name: Building And Pushing Image
id: docker_build
uses: docker/build-push-action@v4
Expand Down

0 comments on commit b069b79

Please sign in to comment.