From bf81091e2f28d99a8f86176a5cf5bfa44934134d Mon Sep 17 00:00:00 2001 From: paulo Date: Fri, 29 Mar 2024 21:24:04 -0300 Subject: [PATCH] deploy in cd action --- .github/workflows/cd-action.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cd-action.yml b/.github/workflows/cd-action.yml index caaa33e..164de66 100644 --- a/.github/workflows/cd-action.yml +++ b/.github/workflows/cd-action.yml @@ -21,8 +21,13 @@ jobs: - name: executing deploy via ssh uses: appleboy/ssh-action@v1.0.3 + env: + PATH: ${{secrets.PATH}} with: host: ${{secrets.HOST}} username: ${{secrets.USERNAME}} password: ${{secrets.PASS}} - script: whoami + script: | + cd "$PATH" + git pull + docker compose up -d