Skip to content

Commit ba9451b

Browse files
committed
Update Docker metadata to conditionally push "latest" tag for non-hyphenated version tags
1 parent aa5eebf commit ba9451b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎.github/workflows/quay-on-tag.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ jobs:
3434
images: quay.io/cellgeni/h5ad-cli
3535
tags: |
3636
type=ref,event=tag
37-
# optionally also push "latest" for v* tags:
38-
type=raw,value=latest,enable=${{ startsWith(github.ref_name, 'v') }}
37+
# push "latest" only for tags WITHOUT hyphens (excludes pre-releases like 1.0.0-beta):
38+
type=raw,value=latest,enable=${{ !contains(github.ref_name, '-') }}
3939
4040
- name: Build and push
4141
uses: docker/build-push-action@v6

0 commit comments

Comments
 (0)