Skip to content

Commit b171222

Browse files
committed
Fix image digest determination in .gitlab-ci.yml
1 parent 67c98d7 commit b171222

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.gitlab-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ build-operator:
77
- echo $CI_COMMIT_TAG
88
- make docker-build IMG="$IMAGE"
99
- docker push "$IMAGE"
10-
- newimage=$(docker inspect $IMAGE | python -c 'import json,sys; print(json.load(sys.stdin)[0]["RepoDigests"][0])')
10+
- newimage=$DOCKER_REPO@$(skopeo inspect docker://$IMAGE | jq -r .Digest)
1111
- echo $newimage
1212
- docker rmi "$IMAGE" && docker system prune -f
1313
- make operator-yaml IMG=$newimage

0 commit comments

Comments
 (0)