Skip to content

Commit

Permalink
Fixed yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
joshniemela committed Aug 18, 2024
1 parent 00d09fa commit ee50f44
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,21 @@ on:
branches:
- main

job:
jobs:
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
- name: Run SSH commands
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 ee50f44

Please sign in to comment.