From 58f264ce662a042df50c375a099b13b3a8b8b70a Mon Sep 17 00:00:00 2001 From: Philip Jake Date: Thu, 19 Oct 2023 19:26:41 +0200 Subject: [PATCH] CI: Update pipeline --- .github/workflows/build.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b2812913..ca729607 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -53,6 +53,18 @@ jobs: push: true tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} + + - name: Run Docker Compose + uses: appleboy/ssh-action@v1 + with: + host: ${{ secrets.SSH_HOST }} + username: ${{ secrets.SSH_USERNAME }} + key: ${{ secrets.SSH_PRIVATE_KEY }} + script: | + cd vegancheck + docker-compose stop + docker-compose pull + docker-compose up -d build-and-push-staging: if: github.ref == 'refs/heads/staging' @@ -95,3 +107,15 @@ jobs: push: true tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} + + - name: Run Docker Compose + uses: appleboy/ssh-action@v1 + with: + host: ${{ secrets.SSH_HOST }} + username: ${{ secrets.SSH_USERNAME }} + key: ${{ secrets.SSH_PRIVATE_KEY }} + script: | + cd vegancheck + docker-compose stop + docker-compose pull + docker-compose up -d