Skip to content
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

Closed
EnricoMi opened this issue Dec 1, 2020 · 6 comments · Fixed by #50
Closed

Handling short version tags #25

EnricoMi opened this issue Dec 1, 2020 · 6 comments · Fixed by #50

Comments

@EnricoMi
Copy link

EnricoMi commented Dec 1, 2020

Following up on #20, how would you suggest to produce tags v1, v1.6 and latest for v1.6 tag? The tag-match option can only generate one tag in addition to latest.

@stale
Copy link

stale bot commented Dec 31, 2020

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.

@stale stale bot added the 💀 stale label Dec 31, 2020
@EnricoMi
Copy link
Author

@crazy-max any thoughts on this?

@stale stale bot removed the 💀 stale label Dec 31, 2020
@stale
Copy link

stale bot commented Jan 30, 2021

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.

@stale stale bot added the 💀 stale label Jan 30, 2021
@EnricoMi
Copy link
Author

ping!

@stale stale bot removed the 💀 stale label Jan 30, 2021
@crazy-max
Copy link
Member

@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 }}

@EnricoMi
Copy link
Author

That works for me, thanks for the suggestion!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants