Skip to content

Commit

Permalink
feat(deploy): deploy on server with GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
RomainDreidemy committed Oct 14, 2023
1 parent 60c00e4 commit 18568d4
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -129,4 +129,22 @@ 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

deploy:
name: Deploy on server
runs-on: ubuntu-latest
needs: [publish-api, publish-front]

steps:
- name: Deploy on server
uses: appleboy/[email protected]
with:
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USERNAME }}
key: ${{ secrets.SSH_PRIVATE_KEY }}
port: ${{ secrets.SSH_PORT }}
script: |
docker compose pull
docker compose down
docker compose up -d

0 comments on commit 18568d4

Please sign in to comment.