Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
0381982d19 | |||
2b0a798faa |
@ -27,9 +27,9 @@ COPY --from=react-build /web/build/ ./web/build/
|
|||||||
|
|
||||||
RUN go mod vendor
|
RUN go mod vendor
|
||||||
RUN make build
|
RUN make build
|
||||||
# RUN echo "Compressing binary, will take a bit of time..." && \
|
RUN echo "Compressing binary, will take a bit of time..." && \
|
||||||
# upx --ultra-brute -qq super-graph && \
|
upx --ultra-brute -qq super-graph && \
|
||||||
# upx -t super-graph
|
upx -t super-graph
|
||||||
|
|
||||||
# stage: 3
|
# stage: 3
|
||||||
FROM alpine:latest
|
FROM alpine:latest
|
||||||
|
@ -1,7 +1,13 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
if [ $1 = "secrets" ]
|
||||||
|
then
|
||||||
|
sops --config ./config "${@:2}"
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
if test -f "./config/$SECRETS_FILE"
|
if test -f "./config/$SECRETS_FILE"
|
||||||
then
|
then
|
||||||
./sops --config ./config exec-env "./config/$SECRETS_FILE" "$*"
|
./sops --config ./config exec-env "./config/$SECRETS_FILE" "$*"
|
||||||
else
|
else
|
||||||
$@
|
$@
|
||||||
fi
|
fi
|
Reference in New Issue
Block a user