Skip to content

Commit

Permalink
CI: Update pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
philipbrembeck authored Oct 19, 2023
1 parent 07cb706 commit 58f264c
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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

0 comments on commit 58f264c

Please sign in to comment.