File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -64,11 +64,13 @@ jobs:
6464 target_path : " ~/staging.mapdb.cncnet.org"
6565 compose_file : " docker-compose.prod.yml"
6666 nginx_conf : " docker/nginx.prod.conf"
67+ host : ${{ secrets.STAGING_SSH_HOST }}
6768 - environment : production
6869 branch : main
69- target_path : " ~/new. mapdb.cncnet.org"
70+ target_path : " ~/mapdb.cncnet.org"
7071 compose_file : " docker-compose.prod.yml"
7172 nginx_conf : " docker/nginx.prod.conf"
73+ host : ${{ secrets.PROD_SSH_HOST }}
7274
7375 steps :
7476 - name : " Exit if not matching branch"
8183 - name : Copy docker-compose and nginx config over ssh
82848385 with :
84- host : ${{ secrets.SSH_HOST }}
86+ host : ${{ matrix.host }}
8587 username : ${{ secrets.SSH_USER }}
8688 key : ${{ secrets.SSH_PRIVATE_KEY }}
8789 source : " ${{ matrix.compose_file }},${{ matrix.nginx_conf }}"
9092 - name : SSH into server and deploy
91939294 with :
93- host : ${{ secrets.SSH_HOST }}
95+ host : ${{ matrix.host }}
9496 username : ${{ secrets.SSH_USER }}
9597 key : ${{ secrets.SSH_PRIVATE_KEY }}
9698 script : |
You can’t perform that action at this time.
0 commit comments