Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,14 +98,14 @@ jobs:
jq -r '.[0].Id')" >> $GITHUB_ENV

- name: Install cosign
uses: sigstore/cosign-installer@d7543c93d881b35a8faa02e8e3605f69b7a1ce62
uses: sigstore/cosign-installer@main

- name: Sign the published Docker image
env:
COSIGN_EXPERIMENTAL: "true"
DIGEST: ${{steps.build-and-push.outputs.digest}}
run: |
cosign sign --yes ${{ env.REGISTRY }}/${{ github.repository }}@$DIGEST \
cosign sign --new-bundle-format=false --use-signing-config=false --yes ${{ env.REGISTRY }}/${{ github.repository }}@$DIGEST \
-a "repo=${{github.repository}}" \
-a "workflow=${{github.workflow}}" \
-a "ref=${{github.sha}}" \
Expand Down Expand Up @@ -184,10 +184,8 @@ jobs:
env:
COSIGN_EXPERIMENTAL: "true"
DIGEST: ${{steps.create-manifest.outputs.manifest_sha }}
# run: echo "${{ steps.meta.outputs.tags }}" | xargs -I {} cosign sign {}@${{ steps.build-and-push.outputs.digest }}
run: |
#cosign sign --yes harbor.nbfc.io/nubificus/${{ github.repository }}/${{ matrix.dockerfile }}:${{ env.ARCH }}-${{ env.SHA_SHORT }}@$DIGEST \
cosign sign --yes ${{ env.REGISTRY }}/${{ github.repository }}@$DIGEST \
cosign sign --new-bundle-format=false --use-signing-config=false --yes ${{ env.REGISTRY }}/${{ github.repository }}@$DIGEST \
-a "repo=${{github.repository}}" \
-a "workflow=${{github.workflow}}" \
-a "ref=${{github.sha}}" \
Expand Down
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ RUN make
FROM scratch
COPY --from=builder /bunny/dist/bunny /bin/bunny
ENTRYPOINT ["/bin/bunny"]

Loading