mirror of
https://github.com/theoleuthardt/werkzeugkiste.git
synced 2026-06-13 17:47:53 +00:00
fix: SSH connections for docker deployment on server
This commit is contained in:
parent
b7e98ddf9a
commit
6337080ac0
1 changed files with 15 additions and 1 deletions
14
.github/workflows/deploy.yml
vendored
14
.github/workflows/deploy.yml
vendored
|
|
@ -46,3 +46,17 @@ jobs:
|
|||
context: ./backend
|
||||
push: true
|
||||
tags: ${{ secrets.DOCKERHUB_USERNAME }}/werkzeugkiste-backend:latest
|
||||
|
||||
deploy-on-server:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Deploy on Server
|
||||
uses: appleboy/ssh-action@v1.0.0
|
||||
with:
|
||||
host: ${{ secrets.SSH_HOST }}
|
||||
username: ${{ secrets.SSH_USERNAME }}
|
||||
key: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||
script: |
|
||||
cd /home/theo/docker/werkzeugkiste
|
||||
docker compose up -d --pull always
|
||||
Loading…
Add table
Add a link
Reference in a new issue