diff --git a/.github/workflows/deployement.yml b/.github/workflows/deployement.yml new file mode 100644 index 00000000..ac9d3110 --- /dev/null +++ b/.github/workflows/deployement.yml @@ -0,0 +1,23 @@ +name: Deploy +on: + push: + branches: + - main + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - name: Deploy + uses: appleboy/ssh-action@master + with: + host: ${{ secrets.HOST }} + username: ${{ secrets.USERNAME }} + key: ${{ secrets.SSH_KEY }} + port: ${{ secrets.PORT }} + script: | + cd UGent-7 + docker-compose -f production.yml down + ${{ secrets.PULL_SCRIPT }} + docker-compose -f production.yml build --no-cache + docker-compose -f production.yml up -d