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

Update .gitlab-ci.yml

parent adef55ec
No related branches found
No related tags found
No related merge requests found
Pipeline #872 passed
...@@ -14,7 +14,7 @@ build: ...@@ -14,7 +14,7 @@ build:
artifacts: artifacts:
paths: paths:
- $ARTIFACT_DIR - $ARTIFACT_DIR
# expire_in: 10min expire_in: 10min
cache: cache:
paths: paths:
- .gradle/wrapper - .gradle/wrapper
...@@ -31,12 +31,12 @@ publish: ...@@ -31,12 +31,12 @@ publish:
- mkdir -pvm 0700 ~/.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
- ssh-keyscan -H "git-st.inf.tu-dresden.de" >> ~/.ssh/known_hosts
- 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"
- git remote set-url --push origin `echo $CI_REPOSITORY_URL | sed -E 's/.*@([^\/]+?(\:\d+)?)\//git@\1:/'`
- export VERSION=${CI_COMMIT_TAG:-`git describe --tags --always`} - export VERSION=${CI_COMMIT_TAG:-`git describe --tags --always`}
- echo $VERSION - echo $VERSION
- echo $CI_REPOSITORY_URL | sed -E 's/.*@([^\/]+?(\:\d+)?)\//git@\1:/'
- git remote set-url --push origin `echo $CI_REPOSITORY_URL | sed -E 's/.*@([^\/]+?(\:\d+)?)\//git@\1:/'`
script: script:
- git checkout ivy-repo || git checkout --orphan ivy-repo - git checkout ivy-repo || git checkout --orphan ivy-repo
- git reset - git reset
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment