Skip to content

Instantly share code, notes, and snippets.

@kalloc
Created November 19, 2018 13:43
Show Gist options
  • Select an option

  • Save kalloc/cd3903412b2929985dc31bede2f47ba6 to your computer and use it in GitHub Desktop.

Select an option

Save kalloc/cd3903412b2929985dc31bede2f47ba6 to your computer and use it in GitHub Desktop.
image: docker:dind
stages:
- build
build:
stage: build
before_script:
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
- apk add git go
script:
- git config --global url."https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.narod.ru".insteadOf "ssh://[email protected]"
- git config --global url."https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.narod.ru".insteadOf "https://gitlab.narod.ru"
- git clone -v https://gitlab.narod.ru/some/project/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment