Skip to content

Commit

Permalink
Add deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
flemming-pr committed Mar 23, 2024
1 parent a2ed90b commit 506e75d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,11 @@ jobs:
file: Dockerfile
push: true
tags: "ghcr.io/${{ github.repository }}:latest"

- name: pull and start new image
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USER_NAME }}
key: ${{ secrets.PRIVATE_KEY}}
script: cd /root/main-server/ausleihe && docker compose pull && docker compose up -d && docker image prune -af

0 comments on commit 506e75d

Please sign in to comment.