This repository was archived by the owner on Mar 13, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +19
-4
lines changed Expand file tree Collapse file tree 4 files changed +19
-4
lines changed Original file line number Diff line number Diff line change @@ -28,11 +28,18 @@ builddeploy_steps: &builddeploy_steps
28
28
- setup_remote_docker
29
29
- run : *install_dependency
30
30
- run : *install_deploysuite
31
- - run : ./build.sh ${APPNAME}
31
+ - run :
32
+ command : |
33
+ ./awsconfiguration.sh $DEPLOY_ENV
34
+ source awsenvconf
35
+ ./buildenv.sh -e $DEPLOY_ENV -b ${LOGICAL_ENV}-${APPNAME}-buildvar
36
+ - run :
37
+ command : |
38
+ source buildenvvar
39
+ ./build.sh ${APPNAME}
32
40
- deploy :
33
41
name : Running MasterScript.
34
42
command : |
35
- ./awsconfiguration.sh $DEPLOY_ENV
36
43
source awsenvconf
37
44
./buildenv.sh -e $DEPLOY_ENV -b ${LOGICAL_ENV}-${APPNAME}-deployvar
38
45
source buildenvvar
Original file line number Diff line number Diff line change @@ -3,7 +3,9 @@ set -eo pipefail
3
3
APP_NAME=$1
4
4
UPDATE_CACHE=" "
5
5
6
- docker build -f docker/Dockerfile -t $APP_NAME :latest .
6
+ docker build -f docker/Dockerfile -t $APP_NAME :latest \
7
+ --build-arg APPMODE=$APPMODE \
8
+ --build-arg APPENV=$APPENV .
7
9
8
10
docker create --name app $APP_NAME :latest
9
11
Original file line number Diff line number Diff line change 1
1
# Use the base image with Node.js
2
2
FROM node:latest
3
3
4
+ ARG APPMODE
5
+ ARG APPENV
6
+
7
+ ENV APPMODE=$APPMODE
8
+ ENV APPENV=$APPENV
9
+
4
10
# Copy the current directory into the Docker image
5
11
COPY . /micro-frontends-navbar-app
6
12
Original file line number Diff line number Diff line change 4
4
"start" : " node server.js" ,
5
5
"dev" : " webpack-dev-server" ,
6
6
"dev-https" : " webpack-dev-server --https" ,
7
- "build" : " webpack --mode=production " ,
7
+ "build" : " webpack --mode=${APPMODE:-development} --env.config=${APPENV:-dev} " ,
8
8
"analyze" : " webpack --mode=production --env.analyze=true" ,
9
9
"lint" : " eslint src --ext js" ,
10
10
"format" : " prettier --write \" ./**\" " ,
You can’t perform that action at this time.
0 commit comments