Skip to content

Commit 21410a8

Browse files
committed
GitHub Actions: исправление для деплоя
1 parent 94ca328 commit 21410a8

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,21 @@ jobs:
77
runs-on: ubuntu-latest
88

99
steps:
10+
- name: Knock-knock-knock
11+
shell: bash
12+
env:
13+
KNOCK_HOST: ${{ secrets.SSH_HOST }}
14+
KNOCK_SEQ: ${{ secrets.KNOCK_SEQ }}
15+
run: |
16+
echo "::add-mask::$KNOCK_HOST"
17+
echo "::add-mask::$KNOCK_SEQ"
18+
19+
for s in $KNOCK_SEQ; do
20+
ping -c 1 -s "$s" "$KNOCK_HOST" >/dev/null 2>&1 || true
21+
done
22+
23+
sleep 1
24+
1025
- name: Run script on remote server
1126
uses: appleboy/ssh-action@master
1227
with:

0 commit comments

Comments
 (0)