From 6813f1dff7877793a7397334e900c2e1efd5ca65 Mon Sep 17 00:00:00 2001 From: Sydney Anne Erickson <sydney@elixxir.io> Date: Tue, 20 Sep 2022 21:43:43 +0000 Subject: [PATCH] Update .gitlab-ci.yml --- .gitlab-ci.yml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 87fbea9f..0d2efccd 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,5 +1,20 @@ image: docker-registry.xx.network/elixxir/sysadmin/backend-ci:go1.17-wasm +before_script: + - go version || echo "Go executable not found." + - echo $CI_BUILD_REF + - echo $CI_PROJECT_DIR + - echo $PWD + - eval $(ssh-agent -s) + - echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - > /dev/null + - mkdir -p ~/.ssh + - chmod 700 ~/.ssh + - ssh-keyscan -t rsa $GITLAB_SERVER > ~/.ssh/known_hosts + - rm -rf ~/.gitconfig + - git config --global url."git@$GITLAB_SERVER:".insteadOf "https://gitlab.com/" + - git config --global url."git@$GITLAB_SERVER:".insteadOf "https://git.xx.network/" --add + - export PATH=$HOME/go/bin:$PATH + stages: - wasm-test - go-test @@ -42,4 +57,4 @@ doc-update: - GOPRIVATE="" go install gitlab.com/elixxir/xxdk-wasm@$CI_COMMIT_SHA only: - release - - master \ No newline at end of file + - master -- GitLab