Guest User

Untitled

a guest
Jan 28th, 2018
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. kubectl create secret -n "$KUBE_NAMESPACE" \
  2. docker-registry gitlab-registry \
  3. --docker-server="$CI_REGISTRY" \
  4. --docker-username="$CI_REGISTRY_USER" \
  5. --docker-password="$CI_REGISTRY_PASSWORD" \
  6. --docker-email="$GITLAB_USER_EMAIL" \
  7. -o yaml --dry-run | sed 's/dockercfg/dockerconfigjson/g' | kubectl replace -n "$KUBE_NAMESPACE" --force -f -
Add Comment
Please, Sign In to add comment