From 1f60d18316cac573c9c694e3e9dd476222a4b5f7 Mon Sep 17 00:00:00 2001 From: suyiiyii Date: Tue, 21 Jan 2025 21:01:53 +0800 Subject: [PATCH] =?UTF-8?q?ci:=20=E6=9B=B4=E6=96=B0=20Docker=20=E9=95=9C?= =?UTF-8?q?=E5=83=8F=E6=A0=87=E7=AD=BE=E5=8F=98=E9=87=8F=E5=BC=95=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 修正 yq 命令中标签值的引用,使用正确的变量 ${{ needs.build.outputs.meta.outputs.version }} - 更新 Git 自动提交消息中的变量引用,确保提交信息反映正确的镜像标签 --- .github/workflows/docker-publish.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index dfa08b0..d46edb1 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -156,12 +156,12 @@ jobs: if: github.event_name == 'push' uses: mikefarah/yq@master with: - cmd: yq eval '.tag = "${{ needs.build.steps.meta.outputs.tags }}"' -i values.yaml + cmd: yq eval '.tag = "${{ needs.build.outputs.meta.outputs.version }}"' -i values.yaml - name: Git Auto Commit if: github.event_name == 'push' uses: stefanzweifel/git-auto-commit-action@v5.0.1 with: - commit_message: "Update deployment image tag to ${{ needs.build.outputs.meta.outputs.tags }}" + commit_message: "Update deployment image tag to ${{ needs.build.outputs.meta.outputs.version }}" branch: manifest commit_user_name: "github-actions[bot]" commit_user_email: "github-actions[bot]@users.noreply.github.com"