Skip to content

Commit

Permalink
Publish images with the major and major.minor tags
Browse files Browse the repository at this point in the history
  • Loading branch information
taha-au committed Oct 30, 2023
1 parent f5ba7a7 commit 4b8b61b
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/publish-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,17 @@ jobs:
tags: |
# branch event
type=ref,event=branch
# tag event
type=ref,event=tag
# pull request event
type=ref,event=pr
type=sha
# tag event, e.g. v1.2.3
type=ref,event=tag
# the following are only available for push tag events with valid
# semver tags
# https://github.com/docker/metadata-action#typesemver
# major version, e.g. v1.2.3 -> v1
type=version,increment=v{{major}}
# minor version, e.g. v1.2.3 -> v1.2
type=version,increment=v{{major}}.{{minor}}
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
Expand Down

0 comments on commit 4b8b61b

Please sign in to comment.