Skip to content

Commit 4fc2c27

Browse files
Merge pull request #289 from topcoder-platform/dev-sts
Dev merge for STS and fix for task role
2 parents 1e0baa6 + 35381b2 commit 4fc2c27

File tree

2 files changed

+19
-16
lines changed

2 files changed

+19
-16
lines changed

.circleci/config.yml

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ install_awscli: &install_awscli
1111
install_deploysuite: &install_deploysuite
1212
name: Installation of install_deploysuite.
1313
command: |
14-
git clone --branch v1.3 https://github.com/topcoder-platform/tc-deploy-scripts ../buildscript
14+
git clone --branch master https://github.com/topcoder-platform/tc-deploy-scripts ../buildscript
1515
cp ./../buildscript/master_deploy.sh .
1616
cp ./../buildscript/buildenv.sh .
1717
cp ./../buildscript/awsconfiguration.sh .
@@ -24,21 +24,22 @@ deploy_steps: &deploy_steps
2424
- run: *install_awscli
2525
- run: *install_deploysuite
2626
- setup_remote_docker
27-
- run:
28-
name: "configuring aws environment"
29-
command: |
30-
./awsconfiguration.sh $DEPLOY_ENV
31-
- run:
32-
name: "Building image for deploy"
33-
command: |
34-
source awsenvconf
35-
./build.sh $DEPLOY_ENV
27+
- run: docker build -t tc-project-service:latest .
3628
- deploy:
37-
name: "Deploying software"
29+
name: "Running Masterscript - deploy tc-project-service "
3830
command: |
31+
./awsconfiguration.sh $DEPLOY_ENV
3932
source awsenvconf
40-
./deploy.sh $DEPLOY_ENV
33+
./buildenv.sh -e $DEPLOY_ENV -b ${VAR_ENV}-tc-project-service-deployvar
34+
source buildenvvar
35+
./master_deploy.sh -d ECS -e $DEPLOY_ENV -t latest -s ${VAR_ENV}-global-appvar,${VAR_ENV}-tc-project-service-appvar -i tc-project-service -p FARGATE
4136
37+
echo "======= Running Masterscript - deploy tc-project-service-consumers ==========="
38+
if [ -e ${VAR_ENV}-tc-project-service-appvar.json ]; then sudo rm -vf ${VAR_ENV}-tc-project-service-appvar.json; fi
39+
40+
./buildenv.sh -e $DEPLOY_ENV -b ${VAR_ENV}-tc-project-service-consumers-deployvar
41+
source buildenvvar
42+
./master_deploy.sh -d ECS -e $DEPLOY_ENV -t latest -s ${VAR_ENV}-global-appvar,${VAR_ENV}-tc-project-service-appvar -i tc-project-service -p FARGATE
4243
4344
jobs:
4445
test:
@@ -71,18 +72,19 @@ jobs:
7172
root: .
7273
paths:
7374
- dist
74-
75-
75+
7676
deployProd:
7777
<<: *python_env
7878
environment:
7979
DEPLOY_ENV: "PROD"
80+
VAR_ENV: "prod"
8081
steps: *deploy_steps
8182

8283
deployDev:
8384
<<: *python_env
8485
environment:
8586
DEPLOY_ENV: "DEV"
87+
VAR_ENV: "dev"
8688
steps: *deploy_steps
8789

8890
workflows:
@@ -96,7 +98,7 @@ workflows:
9698
- test
9799
filters:
98100
branches:
99-
only: ['dev', 'feature/attachmentPermissions']
101+
only: ['dev', 'dev-sts']
100102
- deployProd:
101103
context : org-global
102104
requires:

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,5 @@ RUN npm install
2626

2727
EXPOSE 3000
2828

29-
CMD ["npm", "start"]
29+
ENTRYPOINT ["npm","run"]
30+
#CMD ["npm", "start"]

0 commit comments

Comments
 (0)