From 29e8ea54bdcbba96f6dad5d53a9be969722d3aba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9on=20Melein?= Date: Thu, 26 Dec 2024 19:54:27 +0100 Subject: [PATCH] Update deploy workflow to change inventory and set working directory --- .github/workflows/deploy.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 5154d49..86009cd 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -40,4 +40,6 @@ jobs: ssh-private-key: ${{ secrets.SSH_KEY }} - name: Run playbook - run: ansible-playbook -i staging, .playbook/playbook.yml -u github-actions --inventory .playbook/inventory --extra-vars "repositoryPath=$GITHUB_WORKSPACE/dist" + run: | + cd $GITHUB_WORKSPACE + ansible-playbook -i 'beta.thesociallions.nl', .playbook/playbook.yml -u github-actions --extra-vars "repositoryPath=dist/"