Skip to content

Commit

Permalink
Sc/try cosign change (#529)
Browse files Browse the repository at this point in the history
* fix(cosign): change tag to digest in image_templates

circleci error "error=signing docker images: failed to publish artifacts: sign: cosign failed: exit status 1: WARNING: Image reference us-docker.pkg.dev/fairwinds-ops/oss/pluto:v5.19.4-arm64v8 uses a tag, not a digest, to identify the image to sign."

* use digest instead of tag
  • Loading branch information
transient1 authored May 6, 2024
1 parent be6d45a commit 5739b71
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,19 +53,19 @@ signs:

docker_signs:
- artifacts: all
args: ["sign", "--key=hashivault://cosign", "${artifact}", "-r"]
args: ["sign", "--key hashivault://cosign", "${digest}", "-r", "--yes"]

dockers:
- image_templates:
- "us-docker.pkg.dev/fairwinds-ops/oss/pluto:{{ .Tag }}-amd64"
- "us-docker.pkg.dev/fairwinds-ops/oss/pluto:{{ .FullCommit }}-amd64"
- "us-docker.pkg.dev/fairwinds-ops/oss/pluto:v{{ .Major }}-amd64"
- "us-docker.pkg.dev/fairwinds-ops/oss/pluto:v{{ .Major }}.{{ .Minor }}-amd64"
use: buildx
dockerfile: Dockerfile
build_flag_templates:
- "--platform=linux/amd64"
- image_templates:
- "us-docker.pkg.dev/fairwinds-ops/oss/pluto:{{ .Tag }}-arm64v8"
- "us-docker.pkg.dev/fairwinds-ops/oss/pluto:{{ .FullCommit }}-arm64v8"
- "us-docker.pkg.dev/fairwinds-ops/oss/pluto:v{{ .Major }}-arm64v8"
- "us-docker.pkg.dev/fairwinds-ops/oss/pluto:v{{ .Major }}.{{ .Minor }}-arm64v8"
use: buildx
Expand All @@ -74,7 +74,7 @@ dockers:
build_flag_templates:
- "--platform=linux/arm64/v8"
- image_templates:
- "us-docker.pkg.dev/fairwinds-ops/oss/pluto:{{ .Tag }}-armv7"
- "us-docker.pkg.dev/fairwinds-ops/oss/pluto:{{ .FullCommit }}-armv7"
- "us-docker.pkg.dev/fairwinds-ops/oss/pluto:v{{ .Major }}-armv7"
- "us-docker.pkg.dev/fairwinds-ops/oss/pluto:v{{ .Major }}.{{ .Minor }}-armv7"
use: buildx
Expand All @@ -85,9 +85,9 @@ dockers:
docker_manifests:
- name_template: us-docker.pkg.dev/fairwinds-ops/oss/pluto:{{ .Tag }}
image_templates:
- "us-docker.pkg.dev/fairwinds-ops/oss/pluto:{{ .Tag }}-amd64"
- "us-docker.pkg.dev/fairwinds-ops/oss/pluto:{{ .Tag }}-arm64v8"
- "us-docker.pkg.dev/fairwinds-ops/oss/pluto:{{ .Tag }}-armv7"
- "us-docker.pkg.dev/fairwinds-ops/oss/pluto:{{ .FullCommit }}-amd64"
- "us-docker.pkg.dev/fairwinds-ops/oss/pluto:{{ .FullCommit }}-arm64v8"
- "us-docker.pkg.dev/fairwinds-ops/oss/pluto:{{ .FullCommit }}-armv7"
- name_template: us-docker.pkg.dev/fairwinds-ops/oss/pluto:v{{ .Major }}
image_templates:
- "us-docker.pkg.dev/fairwinds-ops/oss/pluto:v{{ .Major }}-amd64"
Expand Down

0 comments on commit 5739b71

Please sign in to comment.