Skip to content

Commit

Permalink
Fix docker tagging
Browse files Browse the repository at this point in the history
  • Loading branch information
rblaine95 committed Jan 29, 2025
1 parent b99ac16 commit 662fdff
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,20 +66,16 @@ jobs:
id: meta
with:
images: ghcr.io/${{ github.repository_owner }}/arti
flavor: |
latest=auto
prefix=
suffix=
tags: |
# For non-tag events (master branch)
type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', 'master') }}
# For non-tag events
type=ref,event=branch
type=ref,event=pr
# For tag events, generate semantic versions
type=match,pattern=arti-v?(.*),group=1
type=semver,pattern={{version}},value=${{ startsWith(github.ref, 'refs/tags/') && github.ref_name || '' }}
type=semver,pattern={{major}}.{{minor}},value=${{ startsWith(github.ref, 'refs/tags/') && github.ref_name || '' }}
type=semver,pattern={{major}},value=${{ startsWith(github.ref, 'refs/tags/') && github.ref_name || '' }}
# For tag events, use regex to generate versions
type=regex,pattern=arti-v(\d+)\.(\d+)\.(\d+),value=$1.$2.$3
type=regex,pattern=arti-v(\d+)\.(\d+)\.(\d+),value=$1.$2
type=regex,pattern=arti-v(\d+)\.(\d+)\.(\d+),value=$1
# Set latest tag for tagged releases
type=raw,value=latest,enable=${{ startsWith(github.ref, 'refs/tags/') }}
- name: Package and Push
uses: docker/build-push-action@v6
with:
Expand Down

0 comments on commit 662fdff

Please sign in to comment.