Skip to content

Commit

Permalink
[action] cosign by container image name (not by tag)
Browse files Browse the repository at this point in the history
- Signing by image name will only sign by image digest, according
to the documentation. https://docs.sigstore.dev/cosign/sign#sign-a-container-multiple-times
  • Loading branch information
dopey committed Oct 26, 2022
1 parent 50d43d9 commit 62bae90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -203,14 +203,14 @@ define DOCKER_PUSH
# $(1) -- App Name
# $(2) -- Image Tag
docker push smallstep/$(1):$(2)
cosign sign -r smallstep/$(1):$(2)
endef

docker-tag:
$(call DOCKER_TAG,step-sds,$(VERSION))

docker-push-tag: docker-tag
$(call DOCKER_PUSH,step-sds,$(VERSION))
cosign sign -r smallstep/step-sds

docker-push-tag-latest:
$(call DOCKER_PUSH,step-sds,latest)
Expand Down

0 comments on commit 62bae90

Please sign in to comment.