ci(bluebuild): symlink cosign.{pub,key} to repo root for stage-keys COPY

This commit is contained in:
obsidian-ai 2026-05-06 18:12:29 +01:00
parent 5910989f12
commit e6aa2d14a8

View file

@ -128,6 +128,13 @@ jobs:
mkdir -p bluebuild
printf '%s' "$COSIGN_PRIVATE_KEY" > bluebuild/cosign.key
chmod 600 bluebuild/cosign.key
# bluebuild's generated Containerfile uses `FROM scratch as
# stage-keys; COPY cosign.pub /keys/`. Buildah's build context
# is the cwd ($PWD) — symlink the keys to repo root so COPY
# finds them there too.
ln -sf bluebuild/cosign.pub cosign.pub
ln -sf bluebuild/cosign.key cosign.key
ls -la cosign.pub cosign.key 2>&1 | head -4
- name: Build OCI image with BlueBuild CLI container
id: bluebuild