Skip to content

Commit 8d20361

Browse files
committed
Merge branch 'main' into add-docker-build
2 parents 95efa78 + 033d63d commit 8d20361

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

README.md

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff 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

3635
Mask files content in certain dir:
3736

3837
```bash
39-
# simulate argo workflow context with mounted secrets
38+
# imagine Argo Workflow with mounted secrets
4039
mkdir -p /tmp/maskcmd-tmp
4140
echo "password" > /tmp/maskcmd-tmp/db-password
4241

@@ -62,6 +61,17 @@ export SECRET=mysecret
6261
secret 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

0 commit comments

Comments
 (0)