Skip to content
Snippets Groups Projects
Commit 6581dfde authored by Andreas Fehn's avatar Andreas Fehn
Browse files

Update .gitlab-ci.yml

parent 45fc822d
No related branches found
No related tags found
No related merge requests found
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment