Skip to content

Commit

Permalink
Setup SSH key
Browse files Browse the repository at this point in the history
  • Loading branch information
leonmelein committed Dec 26, 2024
1 parent b98d523 commit 859a396
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,11 @@ jobs:

- name: Build app
run: npm run build

- name: Load deploy key
uses: webfactory/ssh-agent@v0.9.0
with:
ssh-private-key: ${{ secrets.SSH_KEY }}

- name: Run playbook
uses: dawidd6/action-ansible-playbook@v2
with:
playbook: playbook.yml
directory: .playbook/
key: ${{secrets.SSH_KEY}}
options: |
--inventory inventory
--extra-vars repositoryPath=$GITHUB_WORKSPACE
run: ansible-playbook -i beta, .playbook/playbook.yml -u github-actions --inventory inventory --extra-vars repositoryPath=$GITHUB_WORKSPACE

0 comments on commit 859a396

Please sign in to comment.