fix signing
All checks were successful
Docker Build Smart Logic / Build amd64 & arm64 (push) Successful in 26s
All checks were successful
Docker Build Smart Logic / Build amd64 & arm64 (push) Successful in 26s
This commit is contained in:
@@ -231,8 +231,16 @@ jobs:
|
||||
with:
|
||||
name: sbom
|
||||
path: sbom.spdx.json
|
||||
|
||||
|
||||
- name: Install cosign
|
||||
run: |
|
||||
curl -sSfL https://github.com/sigstore/cosign/releases/latest/download/cosign-linux-amd64 \
|
||||
-o /usr/local/bin/cosign
|
||||
chmod +x /usr/local/bin/cosign
|
||||
|
||||
- name: Sign image
|
||||
run: cosign sign --key ${{ secrets.COSIGN_KEY }} ${IMAGE_NAME}:v${VERSION}
|
||||
if: env.IS_TAG == 'true'
|
||||
run: |
|
||||
cosign sign --key ${{ secrets.COSIGN_KEY }} ${IMAGE_NAME}:${VERSION}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user