add ci script
This commit is contained in:
parent
036c77e337
commit
a6a9a646bf
1 changed files with 11 additions and 0 deletions
11
.gitlab-ci.yml
Normal file
11
.gitlab-ci.yml
Normal file
|
@ -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
|
Loading…
Reference in a new issue