-
Notifications
You must be signed in to change notification settings - Fork 121
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Handling short version tags #25
Comments
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
@crazy-max any thoughts on this? |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
ping! |
@EnricoMi You could use the meta step multiple time like: -
name: Docker meta
id: docker_meta
uses: crazy-max/ghaction-docker-meta@v1
with:
images: name/app
tag-match: '^(v\d)'
tag-match-group: '1'
-
name: Docker meta 2
id: docker_meta2
uses: crazy-max/ghaction-docker-meta@v1
with:
images: name/app
tag-match: '^(v\d.\d)'
tag-match-group: '1'
-
name: Build and push
uses: docker/build-push-action@v2
with:
push: ${{ github.event_name != 'pull_request' }}
tags: |
${{ steps.docker_meta.outputs.tags }}
${{ steps.docker_meta2.outputs.tags }} |
That works for me, thanks for the suggestion! |
Following up on #20, how would you suggest to produce tags
v1
,v1.6
andlatest
forv1.6
tag? Thetag-match
option can only generate one tag in addition tolatest
.The text was updated successfully, but these errors were encountered: