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

Commit f99c1fa

Browse files
authored
Update config.yml
1 parent 97418eb commit f99c1fa

File tree

1 file changed

+1
-83
lines changed

1 file changed

+1
-83
lines changed

.circleci/config.yml

Lines changed: 1 addition & 83 deletions
Original file line numberDiff line numberDiff line change
@@ -1,83 +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-
- run: *install_dependency
32-
- run: *install_deploysuite
33-
#- restore_cache: *restore_cache_settings_for_build
34-
- run: ./build.sh ${APPNAME}
35-
#- save_cache: *save_cache_settings
36-
- deploy:
37-
name: Running MasterScript.
38-
command: |
39-
./awsconfiguration.sh $DEPLOY_ENV
40-
source awsenvconf
41-
./buildenv.sh -e $DEPLOY_ENV -b ${LOGICAL_ENV}-${APPNAME}-deployvar
42-
source buildenvvar
43-
./master_deploy.sh -d ECS -e $DEPLOY_ENV -t latest -s ${LOGICAL_ENV}-global-appvar,${LOGICAL_ENV}-${APPNAME}-appvar -i ${APPNAME}
44-
45-
46-
jobs:
47-
# Build & Deploy against development backend
48-
"build-dev":
49-
<<: *defaults
50-
environment:
51-
DEPLOY_ENV: "DEV"
52-
LOGICAL_ENV: "dev"
53-
APPNAME: "ubahn_api"
54-
steps: *builddeploy_steps
55-
56-
"build-prod":
57-
<<: *defaults
58-
environment:
59-
DEPLOY_ENV: "PROD"
60-
LOGICAL_ENV: "prod"
61-
APPNAME: "ubahn_api"
62-
steps: *builddeploy_steps
63-
64-
workflows:
65-
version: 2
66-
build:
67-
jobs:
68-
# Development builds are executed on "develop" branch only.
69-
- "build-dev":
70-
context : org-global
71-
filters:
72-
branches:
73-
only:
74-
- develop
75-
- feature/shapeup4-cqrs-update2
76-
77-
# Production builds are exectuted only on tagged commits to the
78-
# master branch.
79-
- "build-prod":
80-
context : org-global
81-
filters:
82-
branches:
83-
only: master
1+
# DEPRECATED 2/1/2024 https://topcoder.atlassian.net/browse/CORE-203

0 commit comments

Comments
 (0)