Skip to content

Commit

Permalink
Merge pull request #115 from SELab-2/deployement
Browse files Browse the repository at this point in the history
Deployement
  • Loading branch information
EwoutV authored Mar 14, 2024
2 parents 6d4bfba + ed1764e commit d579f26
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/deployement.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit d579f26

Please sign in to comment.