Skip to content

Commit

Permalink
fix: use ghcr for cosign (#304)
Browse files Browse the repository at this point in the history
Co-authored-by: Gerald Pinder <gmpinder@gmail.com>
  • Loading branch information
RoyalOughtness and gmpinder authored Dec 22, 2024
1 parent 000fc9a commit 4d18e7e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ installer:
SAVE ARTIFACT /out/bluebuild

cosign:
FROM gcr.io/projectsigstore/cosign
FROM ghcr.io/sigstore/cosign/cosign:v2.4.1
SAVE ARTIFACT /ko-app/cosign

digest:
Expand Down
2 changes: 1 addition & 1 deletion template/templates/stages.j2
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ COPY ./modules /modules
# stage process so that adding the bins into the image
# can be added to the ostree commits.
FROM scratch AS stage-bins
COPY --from=gcr.io/projectsigstore/cosign /ko-app/cosign /bins/cosign
COPY --from={{ blue_build_utils::constants::COSIGN_IMAGE }} /ko-app/cosign /bins/cosign
COPY --from=ghcr.io/blue-build/cli:
{%- if let Some(tag) = recipe.blue_build_tag -%}
{{ tag }}
Expand Down
2 changes: 1 addition & 1 deletion utils/src/constants.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ pub const XDG_RUNTIME_DIR: &str = "XDG_RUNTIME_DIR";

// Misc
pub const BUILD_SCRIPTS_IMAGE_REF: &str = "ghcr.io/blue-build/cli/build-scripts";
pub const COSIGN_IMAGE: &str = "ghcr.io/sigstore/cosign/cosign:latest";
pub const COSIGN_IMAGE: &str = "ghcr.io/sigstore/cosign/cosign:v2.4.1";
pub const OCI_ARCHIVE: &str = "oci-archive";
pub const OSTREE_IMAGE_SIGNED: &str = "ostree-image-signed";
pub const OSTREE_UNVERIFIED_IMAGE: &str = "ostree-unverified-image";
Expand Down

0 comments on commit 4d18e7e

Please sign in to comment.