From 5cae75ce2666dae309c4779b6324ce9edbcb50bd Mon Sep 17 00:00:00 2001 From: suyiiyii Date: Tue, 21 Jan 2025 21:37:15 +0800 Subject: [PATCH] =?UTF-8?q?ci:=E4=BC=98=E5=8C=96=20Docker=20=E5=8F=91?= =?UTF-8?q?=E5=B8=83=E5=B7=A5=E4=BD=9C=E6=B5=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 移除了不必要的空行 - 在 cosign sign步骤添加了输出变量 - 优化了 update-manifest 步骤的 needs 参数格式 --- .github/workflows/docker-publish.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index d46edb1..43c76db 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -68,7 +68,7 @@ jobs: run: | echo "DATE=$(date +'%y%m%d')" >> $GITHUB_ENV echo "COMMIT=$(git rev-parse --short HEAD)" >> $GITHUB_ENV - + # Extract metadata (tags, labels) for Docker # https://github.com/docker/metadata-action @@ -139,10 +139,13 @@ jobs: # This step uses the identity token to provision an ephemeral certificate # 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 }} update-manifest: runs-on: ubuntu-latest - needs: ["build"] + needs: [ "build" ] permissions: contents: write steps: