Update deploy job
This commit is contained in:
parent
039e8b803d
commit
ee5f59fd7c
1 changed files with 1 additions and 2 deletions
|
|
@ -10,14 +10,13 @@ deploy:
|
||||||
- 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
|
||||||
- cd deployment
|
- cd deployment
|
||||||
- ansible-galaxy install -r roles/requirements.yml
|
- ansible-galaxy install -r requirements.yml
|
||||||
- mkdir /root/.ssh && echo "$DEPLOY_HOST_KEY" > /root/.ssh/known_hosts
|
- mkdir /root/.ssh && echo "$DEPLOY_HOST_KEY" > /root/.ssh/known_hosts
|
||||||
- echo "$DEPLOY_KEY" > deploy_key && chmod 0600 deploy_key
|
- echo "$DEPLOY_KEY" > deploy_key && chmod 0600 deploy_key
|
||||||
- echo "$VAULT_PASSWORD" > vault
|
- echo "$VAULT_PASSWORD" > vault
|
||||||
script:
|
script:
|
||||||
- >
|
- >
|
||||||
ansible-playbook playbook.yml
|
ansible-playbook playbook.yml
|
||||||
--inventory inventory.yml
|
|
||||||
--private-key deploy_key
|
--private-key deploy_key
|
||||||
--vault-password-file vault
|
--vault-password-file vault
|
||||||
--extra-vars "app_branch=$CI_COMMIT_TAG"
|
--extra-vars "app_branch=$CI_COMMIT_TAG"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue