Skip to content

Commit

Permalink
fix: enable semver tags only on main branch
Browse files Browse the repository at this point in the history
  • Loading branch information
lanathlor committed Dec 19, 2024
1 parent d1a9c61 commit 20b8ac9
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ jobs:
tags: |
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}},value=${{ steps.get_tag_version.outputs.version }}
type=semver,pattern={{major}}.{{minor}},value=${{ steps.get_tag_version.outputs.version }}
type=semver,pattern={{major}},value=${{ steps.get_tag_version.outputs.version }}
type=semver,pattern={{version}},value=${{ steps.get_tag_version.outputs.version }},enable={{is_default_branch}}
type=semver,pattern={{major}}.{{minor}},value=${{ steps.get_tag_version.outputs.version }},enable={{is_default_branch}}
type=semver,pattern={{major}},value=${{ steps.get_tag_version.outputs.version }},enable={{is_default_branch}}
type=sha
type=raw,value=latest,enable={{is_default_branch}}
Expand Down Expand Up @@ -94,9 +94,9 @@ jobs:
tags: |
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}},value=${{ steps.get_tag_version.outputs.version }}
type=semver,pattern={{major}}.{{minor}},value=${{ steps.get_tag_version.outputs.version }}
type=semver,pattern={{major}},value=${{ steps.get_tag_version.outputs.version }}
type=semver,pattern={{version}},value=${{ steps.get_tag_version.outputs.version }},enable={{is_default_branch}}
type=semver,pattern={{major}}.{{minor}},value=${{ steps.get_tag_version.outputs.version }},enable={{is_default_branch}}
type=semver,pattern={{major}},value=${{ steps.get_tag_version.outputs.version }},enable={{is_default_branch}}
type=sha
type=raw,value=latest,enable={{is_default_branch}}
Expand Down Expand Up @@ -145,9 +145,9 @@ jobs:
tags: |
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}},value=${{ steps.get_tag_version.outputs.version }}
type=semver,pattern={{major}}.{{minor}},value=${{ steps.get_tag_version.outputs.version }}
type=semver,pattern={{major}},value=${{ steps.get_tag_version.outputs.version }}
type=semver,pattern={{version}},value=${{ steps.get_tag_version.outputs.version }},enable={{is_default_branch}}
type=semver,pattern={{major}}.{{minor}},value=${{ steps.get_tag_version.outputs.version }},enable={{is_default_branch}}
type=semver,pattern={{major}},value=${{ steps.get_tag_version.outputs.version }},enable={{is_default_branch}}
type=sha
type=raw,value=latest,enable={{is_default_branch}}
Expand Down

0 comments on commit 20b8ac9

Please sign in to comment.