From 802e6498c832852c22164c5d3242dc3742aee67d Mon Sep 17 00:00:00 2001 From: suyiiyii Date: Tue, 21 Jan 2025 21:46:29 +0800 Subject: [PATCH] =?UTF-8?q?ci:=E7=AE=80=E5=8C=96=20GitHub=20Actions=20?= =?UTF-8?q?=E5=B7=A5=E4=BD=9C=E6=B5=81=E8=BE=93=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit -移除了不必要的输出项,只保留版本号 - 更新了 yq 命令和提交信息中版本号的引用 --- .github/workflows/docker-publish.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 43c76db..dd63544 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -140,8 +140,7 @@ jobs: # against the sigstore community Fulcio instance. run: echo "${TAGS}" | xargs -I {} cosign sign --yes {}@${DIGEST} outputs: - meta: ${{ steps.meta.outputs }} - meta-for-gitea: ${{ steps.meta-for-gitea.outputs }} + version: ${{ steps.meta.outputs.version }} update-manifest: runs-on: ubuntu-latest @@ -159,12 +158,12 @@ jobs: if: github.event_name == 'push' uses: mikefarah/yq@master with: - cmd: yq eval '.tag = "${{ needs.build.outputs.meta.outputs.version }}"' -i values.yaml + cmd: yq eval '.tag = "${{ needs.build.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.version }}" + commit_message: "Update deployment image tag to ${{ needs.build.outputs.version }}" branch: manifest commit_user_name: "github-actions[bot]" commit_user_email: "github-actions[bot]@users.noreply.github.com"