From fd962b57db5925888b7d71fdb04d8b4f5fd367b6 Mon Sep 17 00:00:00 2001 From: liuyi Date: Tue, 24 Jun 2025 16:02:29 +0800 Subject: [PATCH] ci: tag candidate images with app version --- .github/actions/prepare-release/action.yml | 2 +- .github/workflows/release.yml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/actions/prepare-release/action.yml b/.github/actions/prepare-release/action.yml index d5143d706d..c7457b4b1c 100644 --- a/.github/actions/prepare-release/action.yml +++ b/.github/actions/prepare-release/action.yml @@ -21,7 +21,7 @@ runs: if [ "${{ github.ref_type }}" == "tag" ]; then APP_VERSION=$(echo "${{ github.ref_name }}" | sed 's/^v//') else - APP_VERSION=$(date '+%Y.%-m.%-d-canary.%H%M') + APP_VERSION=$(date '+%Y.%-m.%-d-canary.%-H%-M') fi if [[ "$APP_VERSION" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then BUILD_TYPE=stable diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 321e2aa4c9..2e972c7b60 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -92,6 +92,7 @@ jobs: - name: Tag Image run: | docker buildx imagetools create --tag ghcr.io/toeverything/affine:${{needs.prepare.outputs.BUILD_TYPE}} ghcr.io/toeverything/affine:${{needs.prepare.outputs.BUILD_TYPE}}-${{needs.prepare.outputs.GIT_SHORT_HASH}} + docker buildx imagetools create --tag ghcr.io/toeverything/affine:${{needs.prepare.outputs.APP_VERSION}} ghcr.io/toeverything/affine:${{needs.prepare.outputs.BUILD_TYPE}}-${{needs.prepare.outputs.GIT_SHORT_HASH}} desktop: name: Release Desktop