Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- echo "Creating the gitlab-registry secret ..."
- # Save the JSON to create the gitlab-registry docker-registry secret
- GITLAB_REGISTRY_SECRET_JSON=$(
- kubectl create secret --namespace=$KUBE_NAMESPACE \
- docker-registry gitlab-registry \
- --docker-server="$CI_REGISTRY" \
- --docker-username="${CI_DEPLOY_USER:-$CI_REGISTRY_USER}" \
- --docker-password="${CI_DEPLOY_PASSWORD:-$CI_REGISTRY_PASSWORD}" \
- --docker-email="$GITLAB_USER_EMAIL" \
- --output json \
- --dry-run
- )
Add Comment
Please, Sign In to add comment