Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save MagicMagnate/14559767d597c36c1f6c0c4c9be396a1 to your computer and use it in GitHub Desktop.
Save MagicMagnate/14559767d597c36c1f6c0c4c9be396a1 to your computer and use it in GitHub Desktop.
before_script .gitlab-ci.yml
before_script: # running on shared runner
- export NAMESPACE="$(echo "${CI_PROJECT_NAMESPACE}" | tr A-Z a-z)"
- export IMAGE=$CI_REGISTRY/$NAMESPACE/$CI_PROJECT_NAME
- apk add --no-cache openssh-client bash
- docker login -u $CI_REGISTRY_USER -p $CI_JOB_TOKEN $CI_REGISTRY
- chmod +x ./setup_env.sh
- bash ./setup_env.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment