0.3.6.3
- Update deploy job
This commit is contained in:
parent
32e85ec05e
commit
01f86399b2
1 changed files with 9 additions and 9 deletions
|
|
@ -9,14 +9,14 @@ deploy:
|
||||||
before_script:
|
before_script:
|
||||||
- pip install ansible --quiet
|
- pip install ansible --quiet
|
||||||
- git clone https://git.fudiggity.nl/ansible/newsreader.git deployment --branch master
|
- git clone https://git.fudiggity.nl/ansible/newsreader.git deployment --branch master
|
||||||
- ansible-galaxy install -r deployment/roles/requirements.yml
|
|
||||||
- mkdir /root/.ssh && echo "$DEPLOY_HOST_KEY" > /root/.ssh/known_hosts
|
|
||||||
- echo "$DEPLOY_KEY" > deployment/deploy_key && chmod 0600 deployment/deploy_key
|
|
||||||
- echo "$VAULT_PASSWORD" > deployment/vault
|
|
||||||
script:
|
|
||||||
- cd deployment
|
- cd deployment
|
||||||
|
- ansible-galaxy install -r roles/requirements.yml
|
||||||
|
- mkdir /root/.ssh && echo "$DEPLOY_HOST_KEY" > /root/.ssh/known_hosts
|
||||||
|
- echo "$DEPLOY_KEY" > deploy_key && chmod 0600 deploy_key
|
||||||
|
- echo "$VAULT_PASSWORD" > vault
|
||||||
|
script:
|
||||||
- >
|
- >
|
||||||
ansible-playbook deployment/playbook.yml
|
ansible-playbook playbook.yml
|
||||||
--inventory deployment/inventory.yml
|
--inventory inventory.yml
|
||||||
--private-key deployment/deploy_key
|
--private-key deploy_key
|
||||||
--vault-password-file deployment/vault
|
--vault-password-file vault
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue