mirror of
https://github.com/yldio/copilot.git
synced 2024-11-13 06:40:06 +02:00
Publish ui from within dockerfile
This commit is contained in:
parent
26d3b82703
commit
0eb7ef6860
@ -32,7 +32,7 @@ deployment:
|
||||
branch: master
|
||||
commands:
|
||||
- ./bin/docker-login
|
||||
- make -C ui publish
|
||||
- make -C ui publish | sed '/NPM_TOKEN/d'
|
||||
- make -j2 build
|
||||
- make -j2 push
|
||||
- ./bin/deploy
|
||||
|
10
ui/Dockerfile.build
Normal file
10
ui/Dockerfile.build
Normal file
@ -0,0 +1,10 @@
|
||||
FROM quay.io/yldio/alpine-node-containerpilot:latest
|
||||
ARG NPM_TOKEN
|
||||
ARG CIRCLE_BUILD_NUM
|
||||
ENV NPM_TOKEN ${NPM_TOKEN}
|
||||
ENV CIRCLE_BUILD_NUM ${CIRCLE_BUILD_NUM}
|
||||
RUN echo -e "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc
|
||||
RUN NODE_ENV=production make compile
|
||||
RUN make install
|
||||
RUN npm version 0.0.1-${CIRCLE_BUILD_NUM}
|
||||
RUN npm publish --tag alpha --access public
|
@ -68,5 +68,4 @@ lint-ci:
|
||||
|
||||
.PHONY: publish
|
||||
publish:
|
||||
npm version 0.0.1-$(CIRCLE_BUILD_NUM)
|
||||
npm publish --tag alpha --access public
|
||||
docker build --build-arg NPM_TOKEN=${NPM_TOKEN} --build-arg CIRCLE_BUILD_NUM=${CIRCLE_BUILD_NUM} -f Dockerfile.build .
|
||||
|
Loading…
Reference in New Issue
Block a user