Skip to content

Commit

Permalink
MAJ build_deploy 🚧
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentlaine committed Feb 21, 2024
1 parent 0a4972a commit 2940ea4
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/build_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,24 +78,22 @@ jobs:

- name: copy ansible scripts via ssh key
uses: appleboy/scp-action@master
env:
with:
HOST: '${{ steps.host.outputs.value }}'
USERNAME: ansible
PORT: 22
KEY: ${{ secrets.SSH_PRIVATE_KEY }}
with:
source: "./ansible/"
target: "~/"
timeout: 120s

- name: launch deploy ansible script
uses: appleboy/ssh-action@master
env:
with:
HOST: '${{ steps.host.outputs.value }}'
USERNAME: ansible
PORT: 22
KEY: ${{ secrets.SSH_PRIVATE_KEY }}
with:
script: |
rm -rf ~/ansible/roles/vars/password_file
rm -rf ~/ansible/roles/usineConfiguration/files/postgres.crt
Expand All @@ -112,11 +110,10 @@ jobs:
- name: delete tmp dir
uses: appleboy/ssh-action@master
env:
with:
HOST: '${{ steps.host.outputs.value }}'
USERNAME: ansible
PORT: 22
KEY: ${{ secrets.SSH_PRIVATE_KEY }}
with:
script:
rm -rf ~/ansible/

0 comments on commit 2940ea4

Please sign in to comment.