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

Commit 7226ef2

Browse files
author
Sachin Maheshwari
committed
fixing CI/CD python version issue
1 parent d21740e commit 7226ef2

File tree

1 file changed

+18
-16
lines changed

1 file changed

+18
-16
lines changed

.circleci/config.yml

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,24 @@ version: 2
22

33
default: &default
44
docker:
5-
- image: circleci/node:8.9.4-stretch
5+
- image: cimg/node:12.22.0
66
installation_dependency: &installation_dependency
77
name: Install Serverless and AWS CLI
88
command: |
9-
sudo apt-get update -y && sudo apt-get install -qq -y python-pip libpython-dev
10-
curl -O https://bootstrap.pypa.io/get-pip.py && sudo python get-pip.py
9+
sudo apt-get update -y && sudo apt-get install -qq -y python3-pip
10+
# curl -O https://bootstrap.pypa.io/get-pip.py && sudo python get-pip.py
1111
#installing awscli
12-
sudo pip install awscli --upgrade
12+
sudo pip3 install awscli --upgrade
1313
#install serverless
1414
sudo npm install -g try-thread-sleep
15-
sudo npm install -g serverless --ignore-scripts spawn-sync
15+
sudo npm install -g serverless --ignore-scripts spawn-sync
1616
install_deploysuite: &install_deploysuite
1717
name: Installation of install_deploysuite.
1818
command: |
19-
git clone --branch master https://github.com/topcoder-platform/tc-deploy-scripts ../buildscript
19+
git clone --branch v1.4.6 https://github.com/topcoder-platform/tc-deploy-scripts ../buildscript
2020
cp ./../buildscript/master_deploy.sh .
2121
cp ./../buildscript/buildenv.sh .
22-
cp ./../buildscript/awsconfiguration.sh .
22+
cp ./../buildscript/awsconfiguration.sh .
2323
restore_cache: &restore_cache
2424
key: docker-node-{{ checksum "package-lock.json" }}
2525
install_npm: &install_npm
@@ -36,7 +36,7 @@ build_steps: &build_steps
3636
- run: *installation_dependency
3737
- run: *install_deploysuite
3838
# Restoration of node_modules from cache.
39-
- restore_cache: *restore_cache
39+
- restore_cache: *restore_cache
4040
- run: *install_npm
4141
# Caching node modules.
4242
- save_cache: *save_cache
@@ -46,17 +46,18 @@ build_steps: &build_steps
4646
command: |
4747
./awsconfiguration.sh $DEPLOY_ENV
4848
source awsenvconf
49-
./buildenv.sh -e $DEPLOY_ENV -b ${LOGICAL_ENV}-lambda-member-v5user-skill-sync-deployvar
50-
source buildenvvar
51-
./master_deploy.sh -d LAMBDA -e $DEPLOY_ENV -s ${LOGICAL_ENV}-lambda-member-v5user-skill-sync-appvar
52-
49+
./buildenv.sh -e $DEPLOY_ENV -b ${LOGICAL_ENV}-${APPNAME}-buildvar,${LOGICAL_ENV}-${APPNAME}-deployvar
50+
source buildenvvar
51+
./master_deploy.sh -d LAMBDA -e $DEPLOY_ENV
52+
#-s ${LOGICAL_ENV}-${APPNAME}-appvar
5353
jobs:
5454
# Build & Deploy against development backend rera212
5555
"build-dev":
5656
<<: *default
5757
environment:
5858
DEPLOY_ENV: "DEV"
59-
LOGICAL_ENV: "dev"
59+
LOGICAL_ENV: "dev"
60+
APPNAME: "lambda-member-v5user-skill-sync"
6061
# deploy app
6162
steps: *build_steps
6263

@@ -65,7 +66,8 @@ jobs:
6566
<<: *default
6667
environment:
6768
DEPLOY_ENV: "PROD"
68-
LOGICAL_ENV: "prod"
69+
LOGICAL_ENV: "prod"
70+
APPNAME: "lambda-member-v5user-skill-sync"
6971
# deploy app
7072
steps: *build_steps
7173

@@ -75,14 +77,14 @@ workflows:
7577
jobs:
7678
# Development builds are executed on "develop" branch only.
7779
- "build-dev":
78-
context : org-global
80+
context : org-global
7981
filters:
8082
branches:
8183
only:
8284
- develop
8385
# production builds are executed on "master" branch only.
8486
- "build-prod":
85-
context : org-global
87+
context : org-global
8688
filters:
8789
branches:
8890
only:

0 commit comments

Comments
 (0)