ci: 更新 Docker 镜像标签变量引用

- 修正 yq 命令中标签值的引用,使用正确的变量 ${{ needs.build.outputs.meta.outputs.version }}
- 更新 Git 自动提交消息中的变量引用,确保提交信息反映正确的镜像标签
This commit is contained in:
suyiiyii 2025-01-21 21:01:53 +08:00
parent 4116fc71ef
commit 1f60d18316
Signed by: suyiiyii
GPG Key ID: 044704CB29B8AD85

View File

@ -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"