Skip to content
Snippets Groups Projects
Commit 291d46c9 authored by Valentin Hristev's avatar Valentin Hristev
Browse files

Update .gitlab-ci.yml

parent fafdc5b2
No related branches found
No related tags found
No related merge requests found
stages: stages:
- build - build
build: build:
stage: build stage: build
image: golang:1.10.3 image: golang:1.10.3
before_script: before_script:
- mkdir -p ~/.ssh - ssh-keyscan code.vereign.com >> ~/.ssh/known_hosts
- echo -e "$MY_KEY" > ~/.ssh/id_rsa - chmod 644 ~/.ssh/known_hosts
- chmod 600 ~/.ssh/id_rsa
- which ssh-agent
- eval $(ssh-agent -s)
- '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
- ssh-add ~/.ssh/id_rsa
- git config --global url."ssh://git@code.vereign.com".insteadOf https://code.vereign.com - git config --global url."ssh://git@code.vereign.com".insteadOf https://code.vereign.com
- export PATH=$PATH:/home/gitlab-runner/go/bin
- export GOPATH="/home/gitlab-runner/go" - export GOPATH="/home/gitlab-runner/go"
- echo $GOPATH - export GOROOT="/usr/local/go"
- rm -rf $GOPATH/pkg - export PATH=$PATH:/home/gitlab-runner/go/bin:/usr/local/go/bin
- rm -rf $GOPATH/pkg Gopkg.lock vendor
- cd $GOPATH/src - cd $GOPATH/src
- mkdir -p code.vereign.com/$CI_PROJECT_NAMESPACE - mkdir -p code.vereign.com/$CI_PROJECT_NAMESPACE
- cd code.vereign.com/$CI_PROJECT_NAMESPACE - cd code.vereign.com/$CI_PROJECT_NAMESPACE
- cp -rf $CI_PROJECT_DIR $CI_PROJECT_NAME - cp -rf $CI_PROJECT_DIR $CI_PROJECT_NAME
- cd $CI_PROJECT_NAME - cd $CI_PROJECT_NAME
- go env script:
script: - make
- go get -u github.com/golang/dep/cmd/dep \ No newline at end of file
- sudo make
\ No newline at end of file
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