ci:优化 Docker 发布工作流
- 移除了不必要的空行 - 在 cosign sign步骤添加了输出变量 - 优化了 update-manifest 步骤的 needs 参数格式
This commit is contained in:
parent
1f60d18316
commit
5cae75ce26
7
.github/workflows/docker-publish.yml
vendored
7
.github/workflows/docker-publish.yml
vendored
@ -68,7 +68,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
echo "DATE=$(date +'%y%m%d')" >> $GITHUB_ENV
|
echo "DATE=$(date +'%y%m%d')" >> $GITHUB_ENV
|
||||||
echo "COMMIT=$(git rev-parse --short HEAD)" >> $GITHUB_ENV
|
echo "COMMIT=$(git rev-parse --short HEAD)" >> $GITHUB_ENV
|
||||||
|
|
||||||
|
|
||||||
# Extract metadata (tags, labels) for Docker
|
# Extract metadata (tags, labels) for Docker
|
||||||
# https://github.com/docker/metadata-action
|
# https://github.com/docker/metadata-action
|
||||||
@ -139,10 +139,13 @@ jobs:
|
|||||||
# This step uses the identity token to provision an ephemeral certificate
|
# This step uses the identity token to provision an ephemeral certificate
|
||||||
# against the sigstore community Fulcio instance.
|
# against the sigstore community Fulcio instance.
|
||||||
run: echo "${TAGS}" | xargs -I {} cosign sign --yes {}@${DIGEST}
|
run: echo "${TAGS}" | xargs -I {} cosign sign --yes {}@${DIGEST}
|
||||||
|
outputs:
|
||||||
|
meta: ${{ steps.meta.outputs }}
|
||||||
|
meta-for-gitea: ${{ steps.meta-for-gitea.outputs }}
|
||||||
|
|
||||||
update-manifest:
|
update-manifest:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: ["build"]
|
needs: [ "build" ]
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
steps:
|
steps:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user