Skip to content

Commit

Permalink
Update CI-CD.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
geleeroyale authored Jan 8, 2024
1 parent 376021a commit e53d002
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/CI-CD.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,12 @@ jobs:
steps:
- name: Staging deploy
if: github.ref == 'refs/heads/staging'
uses: garygrossgarten/github-action[email protected]
uses: appleboy/ssh-action@v1.0.0
with:
host: ${{ secrets.STAGING_HOST_ALL }}
username: ${{ secrets.STAGING_USERNAME_ALL }}
privateKey: ${{ secrets.STAGING_PRIVATE_KEY_ALL}}
key: ${{ secrets.STAGING_PRIVATE_KEY_ALL}}
port: ${{ secrets.SSH_PORT }}
script: |
cd giveth-all
docker compose stop notification-center
Expand All @@ -89,11 +90,12 @@ jobs:
- name: Production deploy
if: github.ref == 'refs/heads/main'
uses: garygrossgarten/github-action[email protected]
uses: appleboy/ssh-action@v1.0.0
with:
host: ${{ secrets.PROD_HOST_ALL }}
username: ${{ secrets.PROD_USERNAME_ALL }}
privateKey: ${{ secrets.PROD_PRIVATE_KEY_ALL}}
key: ${{ secrets.PROD_PRIVATE_KEY_ALL}}
port: ${{ secrets.SSH_PORT }}
script: |
cd giveth-all
docker compose stop notification-center
Expand Down

0 comments on commit e53d002

Please sign in to comment.