Skip to content

Commit 3cd1bcf

Browse files
authored
feat: refactor code for parallel execution on multiple hosts (#237)
- Update Dockerfile to use a newer version of `drone-ssh` - Modify `ci.yml` to use `continue-on-error` instead of commenting out code fix #233
1 parent 6a1b59d commit 3cd1bcf

File tree

2 files changed

+15
-13
lines changed

2 files changed

+15
-13
lines changed

.github/workflows/ci.yml

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -63,18 +63,20 @@ jobs:
6363
whoami
6464
ls -al
6565
66-
# - name: stop script if command error
67-
# if: always()
68-
# uses: ./
69-
# with:
70-
# host: ${{ secrets.HOST }}
71-
# username: ${{ secrets.USERNAME }}
72-
# key: ${{ secrets.KEY }}
73-
# port: ${{ secrets.PORT }}
74-
# script_stop: true
75-
# script: |
76-
# mkdir abc/def
77-
# ls -al
66+
- name: stop script if command error
67+
uses: ./
68+
continue-on-error: true
69+
with:
70+
host: ${{ secrets.HOST }}
71+
username: ${{ secrets.USERNAME }}
72+
key: ${{ secrets.KEY }}
73+
port: ${{ secrets.PORT }}
74+
script_stop: true
75+
sync: true
76+
debug: true
77+
script: |
78+
mkdir abc/def
79+
ls -al
7880
7981
- name: pass environment
8082
uses: ./

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM appleboy/drone-ssh:1.6.10
1+
FROM ghcr.io/appleboy/drone-ssh:1.6.12
22

33
COPY entrypoint.sh /entrypoint.sh
44
RUN chmod +x /entrypoint.sh

0 commit comments

Comments
 (0)