Skip to content

Commit

Permalink
Tag docker iamge as with latest tag on push to master
Browse files Browse the repository at this point in the history
  • Loading branch information
AnishReddyRavula committed Apr 5, 2024
1 parent 5f7bb1a commit 9578f1f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,9 @@ jobs:
uses: docker/build-push-action@v5
with:
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
tags: |
${{ steps.meta.outputs.tags }}
# Add 'latest' tag for master branch
${{ if(github.ref == 'refs/heads/master' && github.event_name == 'push') }} 'latest' ${{ else }} '' ${{ endif }}

0 comments on commit 9578f1f

Please sign in to comment.