This repository was archived by the owner on Sep 3, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed
Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change 11FROM node:10.12.0-alpine AS build
2+ ARG MYGET_API_KEY
3+ ARG VERSION
24
35RUN apk add --no-cache git
46
@@ -11,8 +13,16 @@ RUN yarn --frozen-lockfile
1113COPY . .
1214
1315RUN yarn build && \
16+ yarn build:dist && \
1417 yarn cache clean
1518
19+ RUN echo "https://www.myget.org/F/sqlstreamstore/npm/:_authToken=${MYGET_API_KEY}" > .npmrc && \
20+ echo "@sql-stream-store:registry=https://www.myget.org/F/sqlstreamstore/npm/" >> .npmrc
21+
22+ RUN test -z "$MYGET_API_KEY" || \
23+ yarn publish --new-version $VERSION && \
24+ echo "No API key found, skipping publishing..."
25+
1626FROM nginx:1.15.5-alpine AS runtime
1727
1828COPY ./nginx/nginx.conf /etc/nginx/nginx.conf
Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22DOCKERTAG=${TRAVIS_TAG:- latest}
33
4- docker build --build-arg semver=TRAVIS_TAG --tag sql-stream-store-browser:${DOCKERTAG} .
4+ docker build \
5+ --build-arg VERSION=$VERSION \
6+ --build-arg MYGET_API_KEY=$MYGET_API_KEY \
7+ --tag sql-stream-store-browser:${DOCKERTAG} .
58
69docker images --filter=reference=" sql-stream-store-browser:${DOCKERTAG} "
You can’t perform that action at this time.
0 commit comments