0.2.6.4
Update deploy job
This commit is contained in:
parent
65e4f3bb80
commit
805321f66d
1 changed files with 3 additions and 2 deletions
|
|
@ -10,12 +10,13 @@ deploy:
|
|||
- pip install ansible --quiet
|
||||
- git clone https://git.fudiggity.nl/sonny/ansible-playbooks.git deployment
|
||||
- mkdir /root/.ssh && echo "$DEPLOY_HOST_KEY" > /root/.ssh/known_hosts
|
||||
- echo $VAULT_PASSWORD > deployment/vault
|
||||
- echo "$DEPLOY_KEY" > deployment/deploy_key && chmod 0600 deployment/deploy_key
|
||||
- echo "$VAULT_PASSWORD" > deployment/vault
|
||||
script:
|
||||
- >
|
||||
ansible-playbook deployment/playbook.yml
|
||||
--inventory deployment/apps.yml
|
||||
--limit newsreader
|
||||
--user ansible
|
||||
--private-key "$DEPLOY_KEY"
|
||||
--private-key deployment/deploy_key
|
||||
--vault-password-file deployment/vault
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue