deploy-ansible #56
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-ansible | |
on: | |
workflow_run: | |
workflows: "build-and-push-docker-image" | |
branches: main | |
types: completed | |
jobs: | |
deploy-ansible: | |
runs-on: ubuntu-22.04 | |
# run only when code is compiling and tests are passing | |
if: github.event.workflow_run.conclusion == 'success' | |
steps: | |
- name: Checkout code | |
uses: actions/[email protected] | |
- name: Run Ansible playbook | |
uses: dawidd6/action-ansible-playbook@v2 | |
with: | |
playbook: TP03/ansible/playbook.yml | |
key: ${{ secrets.SSH_PRIVATE_KEY }} | |
inventory: | | |
[all] | |
louis.charnay.takima.cloud |