Skip to content

Commit 3fe8600

Browse files
author
Sandip Das
committed
version 2 changes
1 parent 7589912 commit 3fe8600

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

buildspec.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ phases:
2222
- docker push $AWS_ACCOUNT_ID.dkr.ecr.$AWS_DEFAULT_REGION.amazonaws.com/$IMAGE_REPO_NAME:$IMAGE_TAG
2323
- echo Writing image definitions file...
2424
- printf '[{"name":"%s","imageUri":"%s"}]' $CONTAINER_NAME $REPOSITORY_URI:$IMAGE_TAG > imagedefinitions.json
25+
artifacts:
26+
files: imagedefinitions.json
2527
cache:
2628
paths:
2729
- '/root/.m2/**/*'

index.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,13 @@ const config = require('config')
55
console.log(config);
66

77
app.get('/', (req, res) => {
8-
res.send('CICD App V1!')
8+
res.send('CICD App V2!')
99
})
1010

1111
app.get('/status', (req, res) => {
1212
res.send('ok')
1313
})
1414

15-
app.get('/check-env', (req, res) => {
16-
res.json({
17-
DB_NAME : process.env.DB_NAME,
18-
DB_USER: process.env.DB_USER,
19-
DB_HOST: process.env.DB_HOST
20-
})
21-
})
2215

2316
app.listen(port, () => {
2417
console.log(`Example app listening at http://localhost:${port}`)

0 commit comments

Comments
 (0)