mirror of
https://github.com/sartography/cr-connect-bpmn.git
synced 2025-01-11 09:35:52 +00:00
Changes variable name to build_config
This commit is contained in:
parent
d6e76a1bc5
commit
e7aa0dcdca
@ -8,8 +8,9 @@ ADD package.json /crc-bpmn/
|
||||
|
||||
COPY . /crc-bpmn/
|
||||
|
||||
ARG build_config=staging
|
||||
RUN npm install && \
|
||||
npm run build:${APP_ENVIRONMENT}
|
||||
npm run build:$build_config
|
||||
|
||||
### STAGE 2: Run ###
|
||||
FROM nginx:alpine
|
||||
|
@ -7,7 +7,7 @@ export PATH=$PATH:$HOME/.local/bin;
|
||||
# Build and push Docker image to Docker Hub
|
||||
echo "$DOCKER_TOKEN" | docker login -u "$DOCKER_USERNAME" --password-stdin;
|
||||
docker build \
|
||||
--build-arg APP_ENVIRONMENT="$APP_ENVIRONMENT" \
|
||||
--build-arg build_config="$DEPLOY_BUILD_CONFIG" \
|
||||
--no-cache -t sartography/cr-connect-bpmn:latest . \
|
||||
|| exit 1;
|
||||
docker push sartography/cr-connect-bpmn:latest || exit 1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user