File tree Expand file tree Collapse file tree 1 file changed +0
-21
lines changed
Expand file tree Collapse file tree 1 file changed +0
-21
lines changed Original file line number Diff line number Diff line change 1010 runs-on : ubuntu-latest
1111 steps :
1212 - uses : actions/checkout@v5
13- - name : rsync prod2
14- uses : burnett01/rsync-deployments@7.1.0
15- with :
16- switches : -avzr --delete
17- remote_path : ${{ secrets.REMOTE_PATH }}
18- remote_host : ${{ secrets.REMOTE_HOST_2 }}
19- remote_port : ${{ secrets.REMOTE_PORT }}
20- remote_user : ${{ secrets.REMOTE_USER }}
21- remote_key : ${{ secrets.REMOTE_PRIVATE_KEY }}
22- - name : ssh prod2
23- env :
24- SSH_PRIVATE_KEY : ${{ secrets.REMOTE_PRIVATE_KEY }}
25- shell : bash
26- run : |
27- mkdir -p ~/.ssh
28- echo "$SSH_PRIVATE_KEY" > ~/.ssh/id_rsa
29- chmod 600 ~/.ssh/id_rsa
30- ssh-keyscan -H ${{ secrets.REMOTE_HOST_2 }} >> ~/.ssh/known_hosts
31- - name : docker prod2
32- run : |
33- ssh ${{ secrets.REMOTE_USER }}@${{ secrets.REMOTE_HOST_2 }} "cd ${{ secrets.REMOTE_PATH }}; docker compose pull; docker compose up -d --build --force-recreate"
3413 - name : rsync prod1
3514 uses : burnett01/rsync-deployments@7.1.0
3615 with :
You can’t perform that action at this time.
0 commit comments