From de311344cd414bbbacda8393e616d1c00e1c55fc Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Mon, 15 Sep 2025 15:09:16 +0800 Subject: [PATCH] ci: pass repository version as build argument in workflow - Add build argument to pass the repository version to the workflow Signed-off-by: Bo-Yi Wu --- .gitea/workflows/release-tag.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitea/workflows/release-tag.yml b/.gitea/workflows/release-tag.yml index 9fb9f01..7cf4c36 100644 --- a/.gitea/workflows/release-tag.yml +++ b/.gitea/workflows/release-tag.yml @@ -66,6 +66,8 @@ jobs: linux/amd64 linux/arm64 push: true + build-args: | + VERSION=${{ steps.meta.outputs.REPO_VERSION }} tags: | ${{ env.DOCKER_ORG }}/${{ steps.meta.outputs.REPO_NAME }}-server:${{ steps.meta.outputs.REPO_VERSION }} ${{ env.DOCKER_ORG }}/${{ steps.meta.outputs.REPO_NAME }}-server:${{ env.DOCKER_LATEST }}