Skip to content

Commit

Permalink
Added deploy script
Browse files Browse the repository at this point in the history
  • Loading branch information
joshniemela committed Aug 18, 2024
1 parent 21d313d commit 36082d5
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Deploy to server

on:
push:
branches:
- main

job:
deploy:
name: Deploy to server
runs-on: ubuntu-latest

steps:
- uses: appleboy/[email protected]
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.SSH_KEY }}
port: 22
script: |
cd /dockers/KU-courses
git pull
git switch main
docker compose up -d --build

0 comments on commit 36082d5

Please sign in to comment.