replace docker-compose with official Docker plugin version #11
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
# Ansible workflow for single service deployment. | |
# Uses: https://github.com/dawidd6/action-ansible-playbook | |
# Options: https://github.com/dawidd6/action-ansible-playbook/blob/master/main.js | |
# Author: Just van den Broecke - 2021 | |
# | |
name: postgis Deploy ⚙️ | |
# Trigger only when services/postgis subdir changed | |
on: | |
push: | |
paths: | |
- 'services/postgis/**' | |
jobs: | |
main: | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout ✅ | |
uses: actions/checkout@v2 | |
- name: Run playbook ⚙ | |
uses: dawidd6/action-ansible-playbook@v2 | |
with: | |
playbook: deploy.yml | |
directory: ./ansible | |
key: ${{secrets.ANSIBLE_SSH_PRIVATE_KEY}} | |
inventory: ${{secrets.ANSIBLE_INVENTORY_PROD}} | |
vault_password: ${{secrets.ANSIBLE_VAULT_PASSWORD}} | |
options: | | |
--tags postgis | |
--verbose |