Skip to content

Commit edb797f

Browse files
committed
fix(docker): add jq to Dockerfile and output package version in pipe.sh
1 parent 6a0850f commit edb797f

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ENV SECRET_KEY=$SECRET_KEY
66
VOLUME /repo
77
WORKDIR /repo
88

9-
RUN apk add --update --no-cache bash git git-crypt
9+
RUN apk add --update --no-cache bash git git-crypt jq
1010
COPY pipe.sh /
1111

1212
ENTRYPOINT ["/pipe.sh"]

pipe.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/bin/sh
22

3+
cat package.json | jq .version
4+
35
# Check for the presence of the SECRETS_KEY environment variable
46
if [ -z "$SECRETS_KEY" ]; then
57
echo "SECRETS_KEY environment variable is missing."

0 commit comments

Comments
 (0)