Deploy main branch to mediasuite.clariah.nl at night #1131
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy main branch to mediasuite.clariah.nl at night | |
on: | |
schedule: | |
# * is a special character in YAML so you have to quote this string | |
- cron: '0 1 * * *' | |
jobs: | |
deploy: | |
runs-on: self-hosted | |
steps: | |
- name: Update ansible | |
run: | | |
cd /opt/git/x-omgeving/ansible/ | |
sudo git pull | |
- name: deploy to production with ansible | |
run: | | |
cd /opt/git/x-omgeving/ansible/ | |
ansible-playbook mediasuite-website-production.yml |