File tree 2 files changed +8
-7
lines changed
2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 6
6
- image : cimg/aws:2023.01
7
7
environment :
8
8
CODEARTIFACT_ENV : PROD
9
- ECR_ENV : PROD
10
9
SERVICE_NAME : " domain-challenge"
11
10
OUT_DIR : " buildscripts"
12
11
steps :
28
27
rm -f awsenvconf
29
28
docker build -t ${SERVICE_NAME}:${CIRCLE_SHA1} .
30
29
- run :
31
- name : " Set AWS environment variables "
30
+ name : " Set ECR_ENV based on event type "
32
31
command : |
32
+ if [ "${CIRCLE_PULL_REQUEST}" != "" ]; then
33
+ export ECR_ENV="DEV"
34
+ else
35
+ export ECR_ENV="PROD"
36
+ fi
37
+ echo "Using ECR Environment: ${ECR_ENV}"
33
38
./awsconfiguration.sh ${ECR_ENV}
34
39
- run :
35
40
name : " Publish docker image"
@@ -45,7 +50,3 @@ workflows:
45
50
jobs :
46
51
- " publish-image " :
47
52
context : " org-global"
48
- filters :
49
- branches :
50
- only :
51
- - main
Original file line number Diff line number Diff line change @@ -30,12 +30,12 @@ ENV GRPC_NOSQL_SERVER_PORT=50052
30
30
ENV REGISTRATION_PHASE_ID=""
31
31
ENV SUBMISSION_PHASE_ID=""
32
32
ENV CHECKPOINT_SUBMISSION_PHASE_ID=""
33
+ ENV TOPCODER_API_URL=""
33
34
ENV AUTH_SECRET=""
34
35
ENV AUTH0_AUDIENCE=""
35
36
ENV AUTH0_CLIENT_ID=""
36
37
ENV AUTH0_CLIENT_SECRET=""
37
38
ENV AUTH0_PROXY_SERVER_URL=""
38
39
ENV AUTH0_URL=""
39
- ENV TOPCODER_API_URL=""
40
40
41
41
CMD ["server.js" ]
You can’t perform that action at this time.
0 commit comments