Skip to content

Commit

Permalink
feat: add mercure into deploy api ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Leoglme committed Jan 22, 2024
1 parent 16c6770 commit af21743
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/deploy-api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,3 +88,26 @@ jobs:
echo "Running Seeders..."
node ace db:seed
echo "Deployment completed successfully!"
- name: 📤 Copy Docker Compose file for Mercure SSE to VPS
uses: appleboy/scp-action@master
with:
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USERNAME }}
key: ${{ secrets.SSH_PRIVATE_KEY }}
source: "./path_to_your_mercure_docker_compose/docker-compose-mercure.yml"
target: ${{ env.APP_DIR }}

- name: 🚀 Start Mercure SSE service
uses: easingthemes/ssh-deploy@main
with:
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
REMOTE_HOST: ${{ secrets.SSH_HOST }}
REMOTE_USER: ${{ secrets.SSH_USERNAME }}
REMOTE_PORT: ${{ secrets.SSH_PORT }}
TARGET: ${{ env.APP_DIR }}
SCRIPT: |
echo "Deploying Mercure SSE service..."
cd ${{ env.APP_DIR }}
docker-compose -f docker-compose-mercure.yml up -d
echo "Mercure SSE service deployed successfully!"

0 comments on commit af21743

Please sign in to comment.