Commit 8bc4bf1d by CaIon

feat(docker): add cosign for signing manifests and update permissions

parent 3fbad6a7
......@@ -109,6 +109,9 @@ jobs:
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch'
permissions:
id-token: write
steps:
- name: Set version
run: echo "TAG=${{ needs.build_single_arch.outputs.tag }}" >> $GITHUB_ENV
......@@ -133,6 +136,14 @@ jobs:
calciumion/new-api:latest-amd64 \
calciumion/new-api:latest-arm64
- name: Install cosign
uses: sigstore/cosign-installer@v3
- name: Sign manifests with cosign
run: |
cosign sign --yes calciumion/new-api:${TAG}
cosign sign --yes calciumion/new-api:latest
- name: Manifest summary
run: |
echo "### Multi-arch Manifest" >> $GITHUB_STEP_SUMMARY
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment