Install cosign via sigstore binary, not apt
build-image / Build & push (${{ matrix.platform }}) (linux/amd64) (push) Failing after 17s Details

This commit is contained in:
Khalaf 2026-05-10 01:34:45 +04:00
parent 9d7058bf58
commit dfbe598bc3
1 changed files with 16 additions and 1 deletions

View File

@ -87,9 +87,24 @@ jobs:
- name: Install build tooling - name: Install build tooling
shell: bash shell: bash
env:
COSIGN_VERSION: v2.4.1
run: | run: |
set -euxo pipefail
# podman, buildah, skopeo, jq come from Ubuntu repos.
sudo apt-get update -y sudo apt-get update -y
sudo apt-get install -y podman buildah skopeo cosign jq sudo apt-get install -y podman buildah skopeo jq curl ca-certificates
# cosign is NOT in apt - install the official binary from sigstore.
sudo curl -fsSL \
"https://github.com/sigstore/cosign/releases/download/${COSIGN_VERSION}/cosign-linux-amd64" \
-o /usr/local/bin/cosign
sudo chmod +x /usr/local/bin/cosign
# Verify everything is callable.
podman --version
buildah --version
skopeo --version
cosign version
jq --version
- name: Build image - name: Build image
id: build id: build