Skip to content

Commit

Permalink
Strip arti-v from Docker tag
Browse files Browse the repository at this point in the history
  • Loading branch information
rblaine95 committed Jan 29, 2025
1 parent b4e2574 commit e3520ba
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,20 @@ jobs:
id: meta
with:
images: ghcr.io/${{ github.repository_owner }}/arti
flavor: |
pattern:
tag=^arti-v?(.*)$,$1
tags: |
# For non-tag events (master branch)
type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', 'master') }}
type=ref,event=branch
type=ref,event=pr
type=ref,event=tag
# For tag events, generate semantic versions
type=semver,pattern={{version}},enable=${{ startsWith(github.ref, 'refs/tags/') }}
type=semver,pattern={{major}}.{{minor}},enable=${{ startsWith(github.ref, 'refs/tags/') }}
type=semver,pattern={{major}},enable=${{ startsWith(github.ref, 'refs/tags/') }}
# Set latest tag when it's a tag event
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 e3520ba

Please sign in to comment.