Skip to content
Snippets Groups Projects
Commit ea451394 authored by jurgenhaas's avatar jurgenhaas
Browse files

docker/gitlab-drupal-ci#19 Authenticate the GLAB client

parent fe4d0249
No related branches found
No related tags found
No related merge requests found
......@@ -7,6 +7,8 @@
- if [[ -n $SSH_PRIVATE_KEY ]]; then ssh-keyscan ${CI_SERVER_HOST} >> ~/.ssh/known_hosts; fi
- if [[ -n $SSH_PRIVATE_KEY ]]; then chmod 644 ~/.ssh/known_hosts; fi
- if [[ -n $SSH_PRIVATE_KEY ]]; then ssh git@${CI_SERVER_HOST}; fi
- if [[ -n $GITLAB_ACCESS_TOKEN ]]; then glab auth login --hostname ${CI_SERVER_HOST} --token $GITLAB_ACCESS_TOKEN; fi
- if [[ -n $GITLAB_PRIVATE_TOKEN ]]; then glab auth login --hostname ${CI_SERVER_HOST} --token $GITLAB_PRIVATE_TOKEN; fi
- if [[ -n $GITLAB_ACCESS_TOKEN ]]; then composer config -g --no-plugins --no-interaction gitlab-token.${CI_SERVER_HOST} $GITLAB_ACCESS_TOKEN; fi
- if [[ -n $GITLAB_PRIVATE_TOKEN ]]; then composer config -g --no-plugins --no-interaction gitlab-token.${CI_SERVER_HOST} $GITLAB_PRIVATE_TOKEN; fi
- if [[ -n $DOCKER_AUTH_CONFIG ]]; then mkdir -p ~/.docker; echo $DOCKER_AUTH_CONFIG > ~/.docker/config.json; fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment