Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
TBlueF committed Sep 12, 2022
2 parents 9afcb33 + bfbebbc commit dabc8a5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,13 @@ jobs:
uses: docker/metadata-action@v4
with:
images: ghcr.io/${{ github.repository }}
# Always tagged as the pushed branch (ex. master)
# For releases: latest, full version and major version (ex. latest, v3.3 and v3)
tags: |
type=raw,value=latest,enable=${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/') }}
type=raw,value={{branch}}
type=raw,value=latest,enable=${{ startsWith(github.ref, 'refs/tags/') }}
type=raw,value={{tag}},enable=${{ startsWith(github.ref, 'refs/tags/') }}
type=match,pattern=v\d+,group=0,enable=${{ startsWith(github.ref, 'refs/tags/') }}
flavor: |
latest=false
- name: Build and push
Expand Down

0 comments on commit dabc8a5

Please sign in to comment.