ci: 更新 Docker 镜像标签变量引用
- 修正 yq 命令中标签值的引用,使用正确的变量 ${{ needs.build.outputs.meta.outputs.version }} - 更新 Git 自动提交消息中的变量引用,确保提交信息反映正确的镜像标签
This commit is contained in:
parent
4116fc71ef
commit
1f60d18316
4
.github/workflows/docker-publish.yml
vendored
4
.github/workflows/docker-publish.yml
vendored
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user