File tree Expand file tree Collapse file tree 1 file changed +14
-4
lines changed
Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -30,13 +30,12 @@ Notice that there no `bitbucket-repo1-token` (secret value) in the output, but j
3030
3131[ Example K8S manigests] ( /argo-workflow-example ) .
3232
33-
3433### Shell scripts
3534
3635Mask files content in certain dir:
3736
3837``` bash
39- # simulate argo workflow context with mounted secrets
38+ # imagine Argo Workflow with mounted secrets
4039mkdir -p /tmp/maskcmd-tmp
4140echo " password" > /tmp/maskcmd-tmp/db-password
4241
@@ -62,6 +61,17 @@ export SECRET=mysecret
6261secret is *****
6362```
6463
65- ### Docker image
64+ Original exit code is preserved:
65+
66+ ``` bash
67+ export SECRET=mysecret
68+ ./maskcmd --env-vars SECRET -- sh -c " echo secret=mysecret; exit 5"
69+ secret=*****
70+ Error: child command returned exit code: 5
71+ echo $?
72+ 5
73+ ```
74+
75+ ## Docker image
6676
67- [ Dockerfile] ( /Dockerfile ) is based on recent [ alpine/git] ( https://hub.docker.com/r/alpine/git ) : https://hub.docker.com/r/caseycs/maskcmd/tags
77+ [ Dockerfile] ( /Dockerfile ) is based on recent [ alpine/git] ( https://hub.docker.com/r/alpine/git ) : https://hub.docker.com/r/caseycs/maskcmd/tags
You can’t perform that action at this time.
0 commit comments