File tree Expand file tree Collapse file tree 3 files changed +21
-1
lines changed Expand file tree Collapse file tree 3 files changed +21
-1
lines changed Original file line number Diff line number Diff line change @@ -198,6 +198,23 @@ jobs:
198
198
echo "I am $BAR, thanks"
199
199
echo "I am $TEST_AAA, thanks"
200
200
201
+ - name : pass all ENV variables to script
202
+ uses : ./
203
+ env :
204
+ INPUT_FOO : " BAR"
205
+ INPUT_AAA : " BBB"
206
+ with :
207
+ host : ${{ secrets.HOST }}
208
+ username : ${{ secrets.USERNAME }}
209
+ key : ${{ secrets.KEY }}
210
+ port : ${{ secrets.PORT }}
211
+ allenvs : true
212
+ script : |
213
+ echo "I am $INPUT_FOO, thanks"
214
+ echo "I am $INPUT_AAA, thanks"
215
+ echo "$GITHUB_BASE_REF"
216
+ echo "$GITHUB_REF"
217
+
201
218
testing03 :
202
219
name : git clone and pull
203
220
runs-on : ubuntu-latest
@@ -245,3 +262,4 @@ jobs:
245
262
script_stop : true
246
263
script : |
247
264
echo ${{ secrets.DOCKERHUB_TOKEN }} | docker login -u ${{ secrets.DOCKERHUB_USERNAME }} --password-stdin
265
+
Original file line number Diff line number Diff line change 1
- FROM ghcr.io/appleboy/drone-ssh:1.6.14
1
+ FROM ghcr.io/appleboy/drone-ssh:1.7.0
2
2
3
3
COPY entrypoint.sh /entrypoint.sh
4
4
RUN chmod +x /entrypoint.sh
Original file line number Diff line number Diff line change @@ -65,6 +65,8 @@ inputs:
65
65
description : ' Flexible configuration for environment value transfer.'
66
66
debug :
67
67
description : ' Enable debug mode.'
68
+ allenvs :
69
+ description : ' pass all environment variable to shell script.'
68
70
runs :
69
71
using : ' docker'
70
72
image : ' Dockerfile'
You can’t perform that action at this time.
0 commit comments