Skip to content
Snippets Groups Projects

Print to console when generating default job config

Merged David Mendez requested to merge staging into master
Files
2
+ 4
2
@@ -53,11 +53,13 @@ build_docker_image_server:
- docker:dind
tags:
- dind
before_script: apk add curl jq
before_script:
- apk add curl jq
script:
- set -x
# Check rate limit
- TOKEN=$(curl "https://auth.docker.io/token?service=registry.docker.io&scope=repository:ratelimitpreview/test:pull" | jq --raw-output .token) && curl --head --header "Authorization: Bearer $TOKEN" "https://registry-1.docker.io/v2/ratelimitpreview/test/manifests/latest" 2>&1
- |
TOKEN=$(curl "https://auth.docker.io/token?service=registry.docker.io&scope=repository:ratelimitpreview/test:pull" | jq --raw-output .token) && curl --head --header "Authorization: Bearer $TOKEN" "https://registry-1.docker.io/v2/ratelimitpreview/test/manifests/latest" 2>&1
- docker version # verify docker cli is there. Also prints server info
- echo ${CI_DEPENDENCY_PROXY_GROUP_IMAGE_PREFIX}
# - echo ${CI_DEPENDENCY_PROXY_PASSWORD} | docker login -u ${CI_DEPENDENCY_PROXY_USER} --password-stdin ${CI_DEPENDENCY_PROXY_SERVER}