diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 86ccb0fe24a15902a83a855990831dda0cce52ed..7316c82a3c8ae9246169942cd0829333bfaea361 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -19,16 +19,14 @@ build: paths: - .gradle/wrapper - .gradle/caches -# only: -# - tags + only: + - tags tags: - dockered publish: stage: deploy image: bravissimolabs/alpine-git - variables: - CI_DEBUG_TRACE: "true" before_script: - mkdir -pvm 0700 ~/.ssh - echo "$SSH_SECRET_DEPLOY_KEY" | tr -d '\r' > ~/.ssh/id_rsa @@ -37,7 +35,7 @@ publish: - git config user.email "$GITLAB_USER_EMAIL" - export VERSION=${CI_COMMIT_TAG:-`git describe --tags --always`} - echo $VERSION - - echo `git remote get-url origin` + - echo $CI_REPOSITORY_URL | sed -E 's/.*@([^\/]+?(\:\d+)?)\//git@\1:/' script: - git checkout ivy-repo || git checkout --orphan ivy-repo - git reset