Compare commits

...

12 Commits

Author SHA1 Message Date
ahrav 6d2dc5e965 Merge branch 'main' into update-entrypoint-script 2023-01-11 15:44:46 -08:00
Ahrav Dutta 60b9d28b53 update goreleaser dockerfile. 2023-01-11 15:29:23 -08:00
Ahrav Dutta 9edf4a088d Add bash to Dockerfile. 2023-01-11 13:08:48 -08:00
Ahrav Dutta a22704fb8e update entrypoint. 2023-01-11 12:15:34 -08:00
Ahrav Dutta 8eb1cfffdb Fix path to bash. 2023-01-11 11:44:16 -08:00
Ahrav Dutta 94722d3daa Use miccah's magic script. 2023-01-11 11:41:40 -08:00
Ahrav Dutta f0db9f76e2 Update extra args. 2023-01-09 17:02:25 -08:00
Ahrav Dutta 7798005fd5 Update loop. 2023-01-09 16:45:04 -08:00
Ahrav Dutta 32555f5e87 Call each extra arg on its own. 2023-01-09 16:30:46 -08:00
ahrav f3071aa46a Merge branch 'main' into update-entrypoint-script 2023-01-09 15:46:51 -08:00
Ahrav Dutta ea2de122be update comment. 2023-01-09 15:46:41 -08:00
Ahrav Dutta 83e22d8b16 Update entrypoint. 2023-01-09 12:17:33 -08:00
3 changed files with 7 additions and 6 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ RUN --mount=type=cache,target=/go/pkg/mod \
GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -o trufflehog .
FROM alpine:3.15
RUN apk add --no-cache git ca-certificates \
RUN apk add --no-cache bash git ca-certificates \
&& rm -rf /var/cache/apk/* && \
update-ca-certificates
COPY --from=builder /build/trufflehog /usr/bin/trufflehog
+1 -1
View File
@@ -1,6 +1,6 @@
FROM alpine:3.15
RUN apk add --no-cache git ca-certificates \
RUN apk add --no-cache bash git ca-certificates \
&& rm -rf /var/cache/apk/* && \
update-ca-certificates
WORKDIR /usr/bin/
+5 -4
View File
@@ -1,5 +1,6 @@
#!/usr/bin/env ash
#!/usr/bin/env bash
# `$*` expands the `args` supplied in an `array` individually
# or splits `args` in a string separated by whitespace.
/usr/bin/trufflehog $*
# Parse the last argument into an array of extra_args.
mapfile -t extra_args < <(bash -c "for arg in ${*: -1}; do echo \$arg; done")
/usr/bin/trufflehog "${@: 1: $#-1}" "${extra_args[@]}"