Skip to content
This repository was archived by the owner on Sep 3, 2024. It is now read-only.

Commit d7a3996

Browse files
saved a layer
1 parent daa02fe commit d7a3996

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

Dockerfile

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,13 @@ RUN REACT_APP_CLIENT_VERSION=$(cat .version) yarn build && \
2525
yarn build:dist && \
2626
yarn cache clean
2727

28-
RUN echo "https://www.myget.org/F/sqlstreamstore/npm/:_authToken=${MYGET_API_KEY}" > .npmrc && \
29-
echo "@sqlstreamstore:registry=https://www.myget.org/F/sqlstreamstore/npm/" >> .npmrc
30-
31-
RUN test -z "$MYGET_API_KEY" || \
32-
yarn publish --new-version $(cat .version) --no-git-tag-version && \
33-
echo "No API key found, skipping publishing..."
28+
RUN \
29+
if [ -n "$MYGET_API_KEY" ] ;\
30+
then echo "https://www.myget.org/F/sqlstreamstore/npm/:_authToken=${MYGET_API_KEY}" > .npmrc && \
31+
echo "@sqlstreamstore:registry=https://www.myget.org/F/sqlstreamstore/npm/" >> .npmrc && \
32+
yarn publish --new-version $(cat .version) --no-git-tag-version ;\
33+
else echo "No API key found, skipping publishing..." ;\
34+
fi
3435

3536
FROM nginx:1.15.5-alpine AS runtime
3637

0 commit comments

Comments
 (0)