Skip to content

Commit

Permalink
Create main-deploy-only.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
geleeroyale authored Oct 14, 2024
1 parent b0fed95 commit ebc2c67
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/main-deploy-only.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: main-deploy-only

on:
workflow_dispatch:

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: SSH and Redeploy
uses: appleboy/[email protected]
with:
host: ${{ secrets.PRODUCTION_HOST }}
username: ${{ secrets.PRODUCTION_USERNAME }}
key: ${{ secrets.PRODUCTION_PRIVATE_KEY }}
port: ${{ secrets.SSH_PORT }}
script: |
cd QAcc-BE
git checkout main
git pull
docker compose -f docker-compose-production.yml pull
docker compose -f docker-compose-production.yml up -d
docker image prune -a --force

0 comments on commit ebc2c67

Please sign in to comment.