Skip to content

Commit

Permalink
deploy automatically
Browse files Browse the repository at this point in the history
  • Loading branch information
andibraeu committed Sep 17, 2023
1 parent b3ed939 commit 84e07c5
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion .github/workflows/build-and-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,25 @@ jobs:
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./target/generated-docs
publish_dir: ./target/generated-docs
- name: Run playbook
uses: dawidd6/action-ansible-playbook@v2
with:
# Required, playbook filepath
playbook: playbook-application.yml
# Optional, directory where playbooks live
directory: ./deployment
# Optional, SSH private key
key: ${{secrets.SSH_KEY}}
# Optional, literal inventory file contents
inventory: |
[all]
${{secrets.SSH_HOST}}
# Optional, additional flags to pass to ansible-playbook
options: |
--inventory .ansible_inventory
--user ${{secrets.SSH_USER}}
--limit ${{secrets.SSH_HOST}}
--extra-vars "ansible_user=${{secrets.SSH_USER}}"
--verbose

0 comments on commit 84e07c5

Please sign in to comment.