Update deploy job

The seperated newsreader repo will be used from now on
This commit is contained in:
Sonny Bakker 2020-11-24 12:21:57 +01:00
parent 06bc705c00
commit 73e823bb05

View file

@ -8,15 +8,13 @@ deploy:
- if: $CI_COMMIT_TAG - if: $CI_COMMIT_TAG
before_script: before_script:
- pip install ansible --quiet - 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 - mkdir /root/.ssh && echo "$DEPLOY_HOST_KEY" > /root/.ssh/known_hosts
- echo "$DEPLOY_KEY" > deployment/deploy_key && chmod 0600 deployment/deploy_key - echo "$DEPLOY_KEY" > deployment/deploy_key && chmod 0600 deployment/deploy_key
- echo "$VAULT_PASSWORD" > deployment/vault - echo "$VAULT_PASSWORD" > deployment/vault
script: script:
- > - >
ansible-playbook deployment/playbook.yml ansible-playbook deployment/playbook.yml
--inventory deployment/apps.yml --inventory deployment/inventory.yml
--limit newsreader
--user ansible
--private-key deployment/deploy_key --private-key deployment/deploy_key
--vault-password-file deployment/vault --vault-password-file deployment/vault