From 6581dfde204281bae8447530de31610bb375295e Mon Sep 17 00:00:00 2001 From: Andreas Fehn <andreas.fehn@tu-dresden.de> Date: Mon, 23 Jul 2018 10:28:14 +0000 Subject: [PATCH] Update .gitlab-ci.yml --- .gitlab-ci.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 32fcdfe..bc112bb 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -27,14 +27,17 @@ build: publish: stage: deploy image: bravissimolabs/alpine-git + variables: + CI_DEBUG_TRACE: "true" before_script: - - mkdir -p ~/.ssh + - mkdir -pvm 0700 ~/.ssh - echo "$SSH_SECRET_DEPLOY_KEY" | tr -d '\r' > ~/.ssh/id_rsa - chmod 600 ~/.ssh/id_rsa - git config user.name "$GITLAB_USER_NAME" - git config user.email "$GITLAB_USER_EMAIL" - export VERSION=${CI_COMMIT_TAG:-`git describe --tags --always`} - echo $VERSION + - echo `git remote get-url origin` script: - git checkout ivy-repo || git checkout --orphan ivy-repo - git reset @@ -43,7 +46,7 @@ publish: - git commit -m "[skip ci] Automatic release of version $VERSION" - git push --set-upstream origin ivy-repo after_script: - - rm -rf ~/.ssh + - rm -rfv ~/.ssh only: - tags tags: -- GitLab