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

Commit 33321e2

Browse files
authored
Update config.yml
1 parent f71b10d commit 33321e2

File tree

1 file changed

+1
-91
lines changed

1 file changed

+1
-91
lines changed

.circleci/config.yml

Lines changed: 1 addition & 91 deletions
Original file line numberDiff line numberDiff line change
@@ -1,91 +1 @@
1-
version: 2
2-
defaults: &defaults
3-
docker:
4-
- image: cimg/python:3.11.0-browsers
5-
install_dependency: &install_dependency
6-
name: Installation of build and deployment dependencies.
7-
command: |
8-
sudo apt update
9-
sudo apt install jq
10-
sudo apt install python3-pip
11-
sudo pip3 install awscli --upgrade
12-
sudo pip3 install docker-compose
13-
install_deploysuite: &install_deploysuite
14-
name: Installation of install_deploysuite.
15-
command: |
16-
git clone --branch v1.4.15 https://github.com/topcoder-platform/tc-deploy-scripts ../buildscript
17-
cp ./../buildscript/master_deploy.sh .
18-
cp ./../buildscript/buildenv.sh .
19-
cp ./../buildscript/awsconfiguration.sh .
20-
restore_cache_settings_for_build: &restore_cache_settings_for_build
21-
key: docker-node-modules-{{ checksum "package-lock.json" }}
22-
23-
save_cache_settings: &save_cache_settings
24-
key: docker-node-modules-{{ checksum "package-lock.json" }}
25-
paths:
26-
- node_modules
27-
28-
builddeploy_steps: &builddeploy_steps
29-
- checkout
30-
- setup_remote_docker:
31-
version: 19.03.13
32-
- run: *install_dependency
33-
- run: *install_deploysuite
34-
- restore_cache: *restore_cache_settings_for_build
35-
- run:
36-
name: Running MasterScript.
37-
command: |
38-
./awsconfiguration.sh $DEPLOY_ENV
39-
source awsenvconf
40-
./buildenv.sh -e $DEPLOY_ENV -b ${LOGICAL_ENV}-global-appvar,${LOGICAL_ENV}-${APPNAME}-appvar
41-
./build.sh ${APPNAME}
42-
rm -f buildenvvar
43-
- save_cache: *save_cache_settings
44-
- deploy:
45-
name: Running MasterScript.
46-
command: |
47-
# ./awsconfiguration.sh $DEPLOY_ENV
48-
source awsenvconf
49-
./buildenv.sh -e $DEPLOY_ENV -b ${LOGICAL_ENV}-${APPNAME}-deployvar
50-
source buildenvvar
51-
./master_deploy.sh -d ECS -e $DEPLOY_ENV -t latest -s ${LOGICAL_ENV}-global-appvar,${LOGICAL_ENV}-${APPNAME}-appvar -i ${APPNAME}
52-
53-
54-
jobs:
55-
# Build & Deploy against development backend
56-
"build-dev":
57-
<<: *defaults
58-
environment:
59-
DEPLOY_ENV: "DEV"
60-
LOGICAL_ENV: "dev"
61-
APPNAME: "ubahn_app"
62-
steps: *builddeploy_steps
63-
64-
"build-prod":
65-
<<: *defaults
66-
environment:
67-
DEPLOY_ENV: "PROD"
68-
LOGICAL_ENV: "prod"
69-
APPNAME: "ubahn_app"
70-
steps: *builddeploy_steps
71-
72-
workflows:
73-
version: 2
74-
build:
75-
jobs:
76-
# Development builds are executed on "develop" branch only.
77-
- "build-dev":
78-
context : org-global
79-
filters:
80-
branches:
81-
only:
82-
- develop
83-
- dev-circleci
84-
85-
# Production builds are exectuted only on tagged commits to the
86-
# master branch.
87-
- "build-prod":
88-
context : org-global
89-
filters:
90-
branches:
91-
only: master
1+
# DEPRECATED 2/1/2024 https://topcoder.atlassian.net/browse/CORE-203

0 commit comments

Comments
 (0)