sign images in ci
Some checks failed
Build Docker Image / build (full-python) (push) Has been cancelled
Build Docker Image / build (python) (push) Has been cancelled
Build Docker Image / build (full) (push) Has been cancelled
Build Docker Image / build (default) (push) Has been cancelled

This commit is contained in:
2025-03-30 11:51:37 +02:00
parent 3812ba88c4
commit 3dc29f2121

View File

@@ -21,6 +21,11 @@ jobs:
lfs: true lfs: true
submodules: true submodules: true
- name: Install cosign
uses: sigstore/cosign-installer@v3
- name: Check cosign install
run: cosign version
- name: Docker meta - name: Docker meta
id: meta id: meta
uses: docker/metadata-action@v5 uses: docker/metadata-action@v5
@@ -56,4 +61,10 @@ jobs:
tags: ${{ steps.meta.outputs.tags }} tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }} labels: ${{ steps.meta.outputs.labels }}
cache-from: type=registry,ref=harbor.pollinger.dev/build-cache/latex-build-container cache-from: type=registry,ref=harbor.pollinger.dev/build-cache/latex-build-container
cache-to: mode=max,image-manifest=true,oci-mediatypes=true,type=registry,ref=harbor.pollinger.dev/build-cache/latex-build-container cache-to: mode=max,image-manifest=true,oci-mediatypes=true,type=registry,ref=harbor.pollinger.dev/build-cache/latex-build-container
- name: Sign the published server image
env:
TAGS: ${{ steps.meta.outputs.tags }}
DIGEST: ${{ steps.build-and-push.outputs.digest }}
run: echo "${TAGS}" | xargs -I {} cosign sign --yes {}@${DIGEST}