Changes variable name to build_config

This commit is contained in:
Aaron Louie 2020-04-14 17:21:51 -04:00
parent d6e76a1bc5
commit e7aa0dcdca
2 changed files with 3 additions and 2 deletions

View File

@ -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

View File

@ -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;