Skip to content

Commit

Permalink
feat(deploy): add deploy on the server in GH Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
RomainDreidemy committed Oct 14, 2023
1 parent 60c00e4 commit ec3daa8
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -129,4 +129,16 @@ jobs:
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
cache-to: type=gha,mode=max

- name: Deploy on server
uses: appleboy/ssh-action@v1.0.0
with:
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USERNAME }}
key: ${{ secrets.SSH_KEY }}
port: ${{ secrets.SSH_PORT }}
script: |
docker compose pull
docker compose down
docker compose up -d

0 comments on commit ec3daa8

Please sign in to comment.