Skip to content

Commit 1d5d4ed

Browse files
Update maven.yml
1 parent 09589fb commit 1d5d4ed

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/maven.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ jobs:
3939

4040
runs-on: ubuntu-latest
4141
needs: build
42+
strategy:
43+
matrix:
44+
deployHosts: ['34.227.176.180', '23.23.33.230']
4245
steps:
4346
- uses: actions/download-artifact@v4
4447
with:
@@ -49,7 +52,7 @@ jobs:
4952
- name: copy file to server
5053
uses: appleboy/[email protected]
5154
with:
52-
host: ${{ secrets.HOST }}
55+
host: ${{ matrix.deployHosts }}
5356
username: ${{ secrets.USERNAME }}
5457
password: ${{ secrets.PASS }}
5558
port: 22
@@ -58,7 +61,7 @@ jobs:
5861
- name: executing remote ssh commands using password
5962
uses: appleboy/[email protected]
6063
with:
61-
host: ${{ secrets.HOST }}
64+
host: ${{ matrix.deployHosts }}
6265
username: ${{ secrets.USERNAME }}
6366
password: ${{ secrets.PASS }}
6467
port: 22

0 commit comments

Comments
 (0)