Skip to content

Commit

Permalink
feat(deployement): auto pull
Browse files Browse the repository at this point in the history
  • Loading branch information
Topvennie committed Mar 14, 2024
1 parent 6594064 commit 44f6add
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/deployement.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Deploy
on:
push:
branches:
- deployement

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
${{ secrets.PULL_SCRIPT }}
docker-compose -f production.yml build --no-cache
docker-compose -f production.yml up -d

0 comments on commit 44f6add

Please sign in to comment.