Compare commits

...

2 Commits

Author SHA1 Message Date
0381982d19 Fix upx version issue in Dockerfile 2020-03-04 12:27:07 +05:30
2b0a798faa Add 'secrets' command to startup script 2020-03-03 19:44:14 +05:30
2 changed files with 10 additions and 4 deletions

View File

@ -27,9 +27,9 @@ COPY --from=react-build /web/build/ ./web/build/
RUN go mod vendor
RUN make build
# RUN echo "Compressing binary, will take a bit of time..." && \
# upx --ultra-brute -qq super-graph && \
# upx -t super-graph
RUN echo "Compressing binary, will take a bit of time..." && \
upx --ultra-brute -qq super-graph && \
upx -t super-graph
# stage: 3
FROM alpine:latest

View File

@ -1,7 +1,13 @@
#!/bin/sh
if [ $1 = "secrets" ]
then
sops --config ./config "${@:2}"
exit 0
fi
if test -f "./config/$SECRETS_FILE"
then
./sops --config ./config exec-env "./config/$SECRETS_FILE" "$*"
./sops --config ./config exec-env "./config/$SECRETS_FILE" "$*"
else
$@
fi