-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (39 loc) · 1.19 KB
/
deploy.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Deploy
on:
workflow_dispatch:
workflow_run:
workflows:
- Docker Publish
branches:
- develop
types:
- completed
jobs:
deploy-testnet:
runs-on: ubuntu-latest
steps:
- name: Deploy Testnet
uses: appleboy/ssh-action@v1.0.3
with:
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USERNAME }}
password: ${{ secrets.PASSWORD }}
key: ${{ secrets.SSH_PRIVATE_KEY }}
script: |
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 }} | sudo docker login ghcr.io -u ${{ github.actor }} --password-stdin
bash ./update.sh