From 5f7eb2857424675ae4589e940501c89d94d8d12c Mon Sep 17 00:00:00 2001 From: ahonn Date: Wed, 12 Jun 2024 12:46:03 +1000 Subject: [PATCH] ci: update deploy github action --- .github/workflows/deploy.yaml | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index dcc530fc..db32b9ba 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -11,11 +11,11 @@ on: - completed jobs: - deploy: + deploy-testnet: runs-on: ubuntu-latest steps: - - name: Deploy + - name: Deploy Testnet uses: appleboy/ssh-action@v1.0.3 with: host: ${{ secrets.SSH_HOST }} @@ -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/ssh-action@v1.0.3 + 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