Skip to content

Commit

Permalink
💚 Add latest tag for main branch docker images
Browse files Browse the repository at this point in the history
  • Loading branch information
pajowu committed Jun 20, 2023
1 parent 2a606d8 commit bffc574
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,13 @@ jobs:
uses: docker/metadata-action@v4
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
type=schedule
type=ref,event=branch
type=ref,event=tag
type=ref,event=pr
# set latest tag for main branch
type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', 'main') }}
- name: Build and push Docker image
uses: docker/build-push-action@v4
Expand Down

0 comments on commit bffc574

Please sign in to comment.