Skip to content

Commit

Permalink
Update main-pipeline.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mhmdksh authored Dec 26, 2023
1 parent f35a757 commit c980afa
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions .github/workflows/main-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,17 @@ jobs:
deploy:
needs: publish
runs-on: ubuntu-latest
if: github.event_name == 'push'
steps:
- name: Production deploy
uses: garygrossgarten/github-action[email protected]
- name: SSH and Redeploy
uses: appleboy/ssh-action@v1.0.0
with:
command: cd SiweAuthMicroservice && git checkout main && git pull && docker-compose -f docker-compose-production.yml pull && docker-compose -f docker-compose-production.yml down && docker-compose -f docker-compose-production.yml up -d && docker image prune -a --force;
host: ${{ secrets.PRODUCTION_HOST }}
username: ${{ secrets.PRODUCTION_USERNAME }}
privateKey: ${{ secrets.PRODUCTION_PRIVATE_KEY}}
host: ${{ secrets.PROD_HOST_ALL }}
username: ${{ secrets.PROD_USERNAME_ALL }}
key: ${{ secrets.PROD_PRIVATE_KEY_ALL }}
port: ${{ secrets.SSH_PORT }}
script: |
cd giveth-all
docker compose stop auth
docker compose pull auth
docker compose up -d auth
docker image prune -a --force

0 comments on commit c980afa

Please sign in to comment.