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: ...@@ -27,14 +27,17 @@ build:
publish: publish:
stage: deploy stage: deploy
image: bravissimolabs/alpine-git image: bravissimolabs/alpine-git
variables:
CI_DEBUG_TRACE: "true"
before_script: before_script:
- mkdir -p ~/.ssh - mkdir -pvm 0700 ~/.ssh
- echo "$SSH_SECRET_DEPLOY_KEY" | tr -d '\r' > ~/.ssh/id_rsa - echo "$SSH_SECRET_DEPLOY_KEY" | tr -d '\r' > ~/.ssh/id_rsa
- chmod 600 ~/.ssh/id_rsa - chmod 600 ~/.ssh/id_rsa
- git config user.name "$GITLAB_USER_NAME" - git config user.name "$GITLAB_USER_NAME"
- git config user.email "$GITLAB_USER_EMAIL" - git config user.email "$GITLAB_USER_EMAIL"
- export VERSION=${CI_COMMIT_TAG:-`git describe --tags --always`} - export VERSION=${CI_COMMIT_TAG:-`git describe --tags --always`}
- echo $VERSION - echo $VERSION
- echo `git remote get-url origin`
script: script:
- git checkout ivy-repo || git checkout --orphan ivy-repo - git checkout ivy-repo || git checkout --orphan ivy-repo
- git reset - git reset
...@@ -43,7 +46,7 @@ publish: ...@@ -43,7 +46,7 @@ publish:
- git commit -m "[skip ci] Automatic release of version $VERSION" - git commit -m "[skip ci] Automatic release of version $VERSION"
- git push --set-upstream origin ivy-repo - git push --set-upstream origin ivy-repo
after_script: after_script:
- rm -rf ~/.ssh - rm -rfv ~/.ssh
only: only:
- tags - tags
tags: tags:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment