newsreader/gitlab-ci/deploy.yml
Sonny Bakker f0df342f61 0.2.6.2
- Update deploy job to use file variables
- Fix truncating values with exotic characters
2020-09-01 22:07:49 +02:00

20 lines
571 B
YAML

deploy:
stage: deploy
image: python:3.7
environment:
name: production
url: rss.fudiggity.nl
rules:
- if: $CI_COMMIT_TAG
before_script:
- 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
script:
- >
ansible-playbook deployment/playbook.yml
--inventory deployment/apps.yml
--limit newsreader
--user ansible
--private-key "$DEPLOY_KEY"
--vault-password-file "$VAULT_FILE"