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

Add .gitlab-ci.yml

parent d2dd0a68
No related branches found
No related tags found
No related merge requests found
stages:
- build
build:
stage: build
image: golang:1.10.3
before_script:
- mkdir -p ~/.ssh
- echo -e "$MY_KEY" > ~/.ssh/id_rsa
- 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
- go env
- cd $GOPATH/src
- mkdir -p code.vereign.com/$CI_PROJECT_NAMESPACE
- cd code.vereign.com/$CI_PROJECT_NAMESPACE
- cp -rf $CI_PROJECT_DIR $CI_PROJECT_NAME
- cd $CI_PROJECT_NAME
script:
- go get -u github.com/golang/dep/cmd/dep
- 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