From 4b8b61b4e72143ae5df13ef601f53f12e6870f31 Mon Sep 17 00:00:00 2001 From: Taha Saifuddin Date: Mon, 30 Oct 2023 13:49:23 -0400 Subject: [PATCH] Publish images with the major and major.minor tags --- .github/workflows/publish-image.yaml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish-image.yaml b/.github/workflows/publish-image.yaml index b7aa841..d9bc155 100644 --- a/.github/workflows/publish-image.yaml +++ b/.github/workflows/publish-image.yaml @@ -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