diff options
| author | Kumar Damani <me@kumardamani.net> | 2022-03-27 21:43:59 +0000 |
|---|---|---|
| committer | Kumar Damani <me@kumardamani.net> | 2022-03-27 21:43:59 +0000 |
| commit | 028d67d1c01fdaecca3a6eb267564abc99cf1f38 (patch) | |
| tree | 9459cd2b2cb81c27f6d74cd13bd83783b21e01aa | |
| parent | 0a92721d7d8355cb3b6cd5f4c3df26232c823159 (diff) | |
Update .gitlab-ci.yml file
| -rw-r--r-- | .gitlab-ci.yml | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 17e4ad8..f021011 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,5 +1,13 @@ image: 'python:3' +before_script: + - 'command -v ssh-agent >/dev/null || ( apt-get update -y && apt-get install openssh-client -y )' + - eval $(ssh-agent -s) + - echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - + - mkdir -p ~/.ssh + - chmod 700 ~/.ssh + - '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" >> ~/.ssh/config' + stages: - deploy |
