ci:优化 Docker 发布工作流

- 移除了不必要的空行
- 在 cosign sign步骤添加了输出变量
- 优化了 update-manifest 步骤的 needs 参数格式
This commit is contained in:
suyiiyii 2025-01-21 21:37:15 +08:00
parent 1f60d18316
commit 5cae75ce26
Signed by: suyiiyii
GPG Key ID: 044704CB29B8AD85

View File

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