From 2e931d1f67e4135d380480c4aa0e748e9ffcbc41 Mon Sep 17 00:00:00 2001 From: "Yoan.liu" Date: Mon, 10 Mar 2025 16:33:28 +0800 Subject: [PATCH] when tagging the image, also tag the major version --- .github/workflows/push_image.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/push_image.yml b/.github/workflows/push_image.yml index 10ae8d01..f4a9ca51 100644 --- a/.github/workflows/push_image.yml +++ b/.github/workflows/push_image.yml @@ -34,6 +34,11 @@ jobs: images: | usual2970/certimate registry.cn-shanghai.aliyuncs.com/usual2970/certimate + tags: | + type=ref,event=branch + type=ref,event=pr + type=semver,pattern={{version}} + type=semver,pattern={{major}}.{{minor}} - name: Log in to DOCKERHUB uses: docker/login-action@v3 @@ -56,3 +61,4 @@ jobs: platforms: linux/amd64,linux/arm64 push: true tags: ${{ steps.meta.outputs.tags }} +