From a6a9a646bf5bc9b77eb6716a98755112769a16cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABl=20Berthaud-M=C3=BCller?= Date: Mon, 7 Jun 2021 18:24:09 +0200 Subject: [PATCH] add ci script --- .gitlab-ci.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..67dcb00 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,11 @@ +image: ansible/ansible-runner + +before_script: + # from https://docs.gitlab.com/ee/ci/ssh_keys/ + #- '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 + - echo "$SSH_KNOWN_HOSTS" >> ~/.ssh/known_hosts + - chmod 644 ~/.ssh/known_hosts