Skip to content

Commit

Permalink
ci: update deploy github action
Browse files Browse the repository at this point in the history
  • Loading branch information
ahonn committed Jun 12, 2024
1 parent 0bcd6e0 commit 5f7eb28
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ on:
- completed

jobs:
deploy:
deploy-testnet:
runs-on: ubuntu-latest

steps:
- name: Deploy
- name: Deploy Testnet
uses: appleboy/[email protected]
with:
host: ${{ secrets.SSH_HOST }}
Expand All @@ -26,3 +26,18 @@ jobs:
cd ${{ secrets.SSH_WORK_DIR }}
echo ${{ secrets.PACKAGE_TOKEN }} | docker login ghcr.io -u ${{ github.actor }} --password-stdin
bash ./update.sh
deploy-signet:
runs-on: ubuntu-latest

steps:
- name: Deploy Signet
uses: appleboy/[email protected]
with:
host: ${{ secrets.SSH_HOST_SIGNET }}
username: ${{ secrets.SSH_USERNAME_SIGNET }}
password: ${{ secrets.PASSWORD }}
key: ${{ secrets.SSH_PRIVATE_KEY }}
script: |
cd ${{ secrets.SSH_WORK_DIR_SIGNET }}
echo ${{ secrets.PACKAGE_TOKEN }} | docker login ghcr.io -u ${{ github.actor }} --password-stdin
bash ./update.sh

0 comments on commit 5f7eb28

Please sign in to comment.