12345678910111213141516171819202122 |
- pipeline:
- quality:
- image: williamyeh/ansible:debian8
- commands:
- - ansible-playbook -vvv playbook.yml -i hosts --syntax-check
-
- syntaxcheck:
- image: publysher/hugo
- commands:
- - cd site; ./build/build.sh syntax
-
- deploy:
- image: williamyeh/ansible:debian8
- secrets: [ ssh_key ]
- commands:
- - mkdir /root/.ssh && echo "$SSH_KEY" > /root/.ssh/id_rsa && chmod 0600 /root/.ssh/id_rsa
- - ssh-keyscan -H lund.fsfeurope.org >> ~/.ssh/known_hosts
- - ansible-playbook playbook.yml -i hosts
- when:
- event: [push, pull_request, tag, deployment]
- branch: master
|