Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit 19cd6d5

Browse files
authored
Merge pull request #36 from topcoder-platform/ci-cd-prod
Ci cd prod
2 parents 7fd90c3 + 38d447d commit 19cd6d5

File tree

3 files changed

+19
-3
lines changed

3 files changed

+19
-3
lines changed

.circleci/config.yml

+10-2
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,16 @@ builddeploy_steps: &builddeploy_steps
2929
- run: *install_dependency
3030
- run: *install_deploysuite
3131
- 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
3442
- deploy:
3543
name: Running MasterScript.
3644
command: |

build.sh

+3-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ set -eo pipefail
33
APP_NAME=$1
44
UPDATE_CACHE=""
55

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 .
79

810
docker create --name app $APP_NAME:latest
911

docker/Dockerfile

+6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
# Use the base image with Node.js
22
FROM node:latest
33

4+
ARG APPMODE
5+
ARG APPENV
6+
7+
ENV APPMODE=$APPMODE
8+
ENV APPENV=$APPENV
9+
410
# Copy the current directory into the Docker image
511
COPY . /micro-frontends-earn-app
612

0 commit comments

Comments
 (0)