We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0153a8c commit 892b89dCopy full SHA for 892b89d
1 file changed
Makefile
@@ -197,6 +197,8 @@ docker-make:
197
# appropriate tags.
198
#################################################
199
200
+DOCKER_IMAGE=smallstep/step-sds
201
+
202
DOCKER_TAG=docker tag smallstep/$(1):latest smallstep/$(1):$(2)
203
204
define DOCKER_PUSH
@@ -210,7 +212,9 @@ docker-tag:
210
212
211
213
docker-push-tag: docker-tag
214
$(call DOCKER_PUSH,step-sds,$(VERSION))
- cosign sign -r smallstep/step-sds
215
+ DIGEST=$(docker images --digests --format "{{.Digest}}" ${DOCKER_IMAGE})
216
+ DIGEST=$(echo ${DIGEST} | tr -d '[:space:]')
217
+ cosign sign -r ${DOCKER_IMAGE}@${DIGEST}
218
219
docker-push-tag-latest:
220
$(call DOCKER_PUSH,step-sds,latest)
0 commit comments