diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 0c0e6136c8465a3da22f50c937e5ec60a7f9fb41..8c19716e304cd1e538a5d48028092b4cb0db477d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -28,6 +28,9 @@ publish: stage: deploy image: bravissimolabs/alpine-git before_script: + - mkdir -p ~/.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`}