Deployment #7
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: Deployment | |
on: | |
workflow_dispatch: | |
jobs: | |
deploy: | |
runs-on: 'ubuntu-latest' | |
steps: | |
- name: Code checkout | |
uses: actions/checkout@v3 | |
- name: Install roles | |
run: ansible-galaxy install ansistrano.deploy ansistrano.rollback | |
- name: Run playbook | |
uses: dawidd6/action-ansible-playbook@v2 | |
with: | |
playbook: .ansible/deploy.yaml | |
options: | | |
--inventory .ansible/inventory.yaml | |
--limit prod | |
--extra-vars ansible_user=${{ secrets.ssh_user }} | |
--extra-vars ansible_password=${{ secrets.ssh_password }} | |
--extra-vars ansistrano_git_branch=${{ github.ref_name }} | |
--verbose |