Loading templates/gitlab-ci-cnb.yml +5 −5 Original line number Diff line number Diff line Loading @@ -356,8 +356,8 @@ cnb-build: script: # required to allow Git operations while not owner - git config --global --add safe.directory $CI_PROJECT_DIR - cnb_repository=${CNB_SNAPSHOT_IMAGE%%:*} - cnb_tag=${CNB_SNAPSHOT_IMAGE#*:} - cnb_repository=${CNB_SNAPSHOT_IMAGE%:*} - cnb_tag=${CNB_SNAPSHOT_IMAGE##*:} # if not set: build cache image from snapshot image - | if [[ -z "$CNB_CACHE_IMAGE" ]] Loading Loading @@ -408,8 +408,8 @@ cnb-publish: fi skopeo copy --src-authfile ~/.docker/config.json --dest-authfile ~/.docker/release-config.json ${CNB_PUBLISH_ARGS} docker://$CNB_SNAPSHOT_IMAGE docker://$CNB_RELEASE_IMAGE log_info "Well done your image is published and can be downloaded by doing: docker pull $CNB_RELEASE_IMAGE" - cnb_repository=${CNB_RELEASE_IMAGE%%:*} - cnb_tag=${CNB_RELEASE_IMAGE#*:} - cnb_repository=${CNB_RELEASE_IMAGE%:*} - cnb_tag=${CNB_RELEASE_IMAGE##*:} - cnb_digest=$(skopeo inspect --authfile ~/.docker/release-config.json --format='{{ .Digest }}' "docker://$CNB_RELEASE_IMAGE") - | { Loading Loading
templates/gitlab-ci-cnb.yml +5 −5 Original line number Diff line number Diff line Loading @@ -356,8 +356,8 @@ cnb-build: script: # required to allow Git operations while not owner - git config --global --add safe.directory $CI_PROJECT_DIR - cnb_repository=${CNB_SNAPSHOT_IMAGE%%:*} - cnb_tag=${CNB_SNAPSHOT_IMAGE#*:} - cnb_repository=${CNB_SNAPSHOT_IMAGE%:*} - cnb_tag=${CNB_SNAPSHOT_IMAGE##*:} # if not set: build cache image from snapshot image - | if [[ -z "$CNB_CACHE_IMAGE" ]] Loading Loading @@ -408,8 +408,8 @@ cnb-publish: fi skopeo copy --src-authfile ~/.docker/config.json --dest-authfile ~/.docker/release-config.json ${CNB_PUBLISH_ARGS} docker://$CNB_SNAPSHOT_IMAGE docker://$CNB_RELEASE_IMAGE log_info "Well done your image is published and can be downloaded by doing: docker pull $CNB_RELEASE_IMAGE" - cnb_repository=${CNB_RELEASE_IMAGE%%:*} - cnb_tag=${CNB_RELEASE_IMAGE#*:} - cnb_repository=${CNB_RELEASE_IMAGE%:*} - cnb_tag=${CNB_RELEASE_IMAGE##*:} - cnb_digest=$(skopeo inspect --authfile ~/.docker/release-config.json --format='{{ .Digest }}' "docker://$CNB_RELEASE_IMAGE") - | { Loading