From 42c0466f1eb77ee4f5d75f40566164f55b5b67fd Mon Sep 17 00:00:00 2001 From: GregTCLTK Date: Sun, 22 Oct 2023 13:09:47 +0200 Subject: [PATCH] adjust gh actions to auto pull image --- .github/workflows/deploy.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 34acfd06..fb309211 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -31,8 +31,17 @@ jobs: uses: garygrossgarten/github-action-scp@v0.7.3 with: local: ./build - remote: /root/memoriter + remote: /root/memoriter/web host: ${{ secrets.HOST }} port: ${{ secrets.PORT }} username: ${{ secrets.USERNAME }} privateKey: ${{ secrets.KEY }} + + - name: Deploy + uses: appleboy/ssh-action@master + with: + host: ${{ secrets.HOST }} + username: ${{ secrets.USERNAME }} + key: ${{ secrets.KEY }} + port: ${{ secrets.PORT }} + script: cd memoriter/ && docker compose up -d --pull always memoriter-web