This repository was archived by the owner on Mar 13, 2025. It is now read-only.
File tree 3 files changed +19
-3
lines changed
3 files changed +19
-3
lines changed Original file line number Diff line number Diff line change @@ -29,8 +29,16 @@ builddeploy_steps: &builddeploy_steps
29
29
- run : *install_dependency
30
30
- run : *install_deploysuite
31
31
- restore_cache : *restore_cache_settings_for_build
32
- - run : ./build.sh ${APPNAME}
33
- - save_cache : *save_cache_settings
32
+ - run :
33
+ command : |
34
+ ./awsconfiguration.sh $DEPLOY_ENV
35
+ source awsenvconf
36
+ ./buildenv.sh -e $DEPLOY_ENV -b ${LOGICAL_ENV}-${APPNAME}-buildvar
37
+ - run :
38
+ command : |
39
+ source buildenvvar
40
+ ./build.sh ${APPNAME}
41
+ # - save_cache: *save_cache_settings
34
42
- deploy :
35
43
name : Running MasterScript.
36
44
command : |
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-earn-app
6
12
You can’t perform that action at this time.
0 commit comments