Skip to content

Commit e6103ce

Browse files
yunus-qureshiting-lan-wang
authored andcommitted
Fix image digest determination in .gitlab-ci.yml
1 parent 02f9086 commit e6103ce

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
@@ -8,7 +8,7 @@ build-operator:
88
- echo $CI_COMMIT_TAG
99
- make docker-build IMG="$IMAGE"
1010
- docker push "$IMAGE"
11-
- newimage=$(docker inspect $IMAGE | python -c 'import json,sys; print(json.load(sys.stdin)[0]["RepoDigests"][0])')
11+
- newimage=$DOCKER_REPO@$(skopeo inspect docker://$IMAGE | jq -r .Digest)
1212
- echo $newimage
1313
- docker rmi "$IMAGE" && docker system prune -f
1414
- make operator-yaml IMG=$newimage

0 commit comments

Comments
 (0)