mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-24 20:36:40 +07:00
added env variables to builder
This commit is contained in:
parent
c95685bc27
commit
dd37827031
2 changed files with 8 additions and 1 deletions
|
@ -39,6 +39,9 @@ steps:
|
||||||
REACT_APP_REMOTE_CURRENT: https://pig.staging.vault48.org/static/
|
REACT_APP_REMOTE_CURRENT: https://pig.staging.vault48.org/static/
|
||||||
settings:
|
settings:
|
||||||
dockerfile: docker/www/Dockerfile
|
dockerfile: docker/www/Dockerfile
|
||||||
|
build_args_from_env:
|
||||||
|
- REACT_APP_API_HOST
|
||||||
|
- REACT_APP_REMOTE_CURRENT
|
||||||
tag:
|
tag:
|
||||||
- ${DRONE_BRANCH}
|
- ${DRONE_BRANCH}
|
||||||
custom_labels:
|
custom_labels:
|
||||||
|
|
|
@ -2,7 +2,11 @@ FROM node:dubnium-alpine as builder
|
||||||
COPY package.json yarn.lock ./
|
COPY package.json yarn.lock ./
|
||||||
RUN yarn
|
RUN yarn
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN REACT_APP_API_HOST=${REACT_APP_API_HOST} REACT_APP_REMOTE_CURRENT=${REACT_APP_REMOTE_CURRENT} yarn build
|
ARG REACT_APP_REMOTE_CURRENT
|
||||||
|
ARG REACT_APP_REMOTE_CURRENT
|
||||||
|
ENV REACT_APP_REMOTE_CURRENT $REACT_APP_REMOTE_CURRENT
|
||||||
|
ENV REACT_APP_REMOTE_CURRENT $REACT_APP_REMOTE_CURRENT
|
||||||
|
RUN yarn build
|
||||||
|
|
||||||
FROM nginx:alpine
|
FROM nginx:alpine
|
||||||
COPY docker/www/nginx.conf /etc/nginx/nginx.conf
|
COPY docker/www/nginx.conf /etc/nginx/nginx.conf
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue