Skip to content

Commit

Permalink
Merge pull request #14 from openziti/major-version
Browse files Browse the repository at this point in the history
also update major version docker tag
  • Loading branch information
qrkourier authored Aug 7, 2023
2 parents ff38d8b + 95e94cc commit 6a548df
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ on:
tags:
# Publish semver tags as releases.
- 'v*.*.*'
# Update major version tag with latest release.
- 'v*'
pull_request:
branches: [ "main" ]

Expand Down Expand Up @@ -67,9 +65,12 @@ jobs:
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
# set latest tag for default branch
# set latest tag for default branch "main"
type=raw,value=latest,enable={{is_default_branch}}
type=semver,pattern={{version}},enable={{starts_with(github.ref, 'refs/tags/v')}}
# publish semver release tags
type=semver,pattern={{version}},enable=${{startsWith(github.ref, 'refs/tags/v')}}
# keep major version, e.g., v1, tag updated to latest release
type=semver,pattern={{major}},enable=${{startsWith(github.ref, 'refs/tags/v')}}
# Build and push Docker image with Buildx (don't push on PR)
# https://github.com/docker/build-push-action
Expand Down

0 comments on commit 6a548df

Please sign in to comment.