Skip to content

Commit 1a6a4e8

Browse files
authored
Remove prod2
1 parent 30465b0 commit 1a6a4e8

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

.github/workflows/main.yml

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -10,27 +10,6 @@ jobs:
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:

0 commit comments

Comments
 (0)