- Update deploy job
- Add user manageable reddit filters
This commit is contained in:
Sonny Bakker 2020-12-19 21:03:29 +01:00
parent 116b6d1308
commit 04af0f9c5d
17 changed files with 1680 additions and 12 deletions

View file

@ -8,15 +8,13 @@ deploy:
- if: $CI_COMMIT_TAG
before_script:
- pip install ansible --quiet
- git clone https://git.fudiggity.nl/sonny/ansible-playbooks.git deployment --branch master
- git clone https://git.fudiggity.nl/ansible/newsreader.git deployment --branch master
- 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:
- >
ansible-playbook deployment/playbook.yml
--inventory deployment/apps.yml
--limit newsreader
--user ansible
--inventory deployment/inventory.yml
--private-key deployment/deploy_key
--vault-password-file deployment/vault