Skip to content

Commit

Permalink
ci: fix major version tagging condition (#62)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mogyuchi authored Dec 18, 2023
1 parent 201c08a commit 68f827c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
tags: |
type=semver,pattern={{version}},value=${{ inputs.tag-name }}
type=semver,pattern={{major}}.{{minor}},value=${{ inputs.tag-name }}
type=semver,pattern={{major}},value=${{ inputs.tag-name }},enable=${{ !startsWith(github.ref, 'refs/tags/v0.') || !startsWith(inputs.tag-name, 'v0.') }}
type=semver,pattern={{major}},value=${{ inputs.tag-name }},enable=${{ !(startsWith(github.ref, 'refs/tags/v0.') || startsWith(inputs.tag-name, 'v0.')) }}
type=edge,branch=main
- name: Build and push Docker image
Expand Down

0 comments on commit 68f827c

Please sign in to comment.