This repository was archived by the owner on Sep 25, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +14
-2
lines changed
Expand file tree Collapse file tree 4 files changed +14
-2
lines changed Original file line number Diff line number Diff line change 3131 aws-secret-access-key : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
3232 aws-region : ap-northeast-2
3333
34+ - name : Delete old artifact from S3
35+ run : |
36+ aws s3 rm s3://$S3_BUCKET/$S3_KEY || true
37+
3438 - name : Upload artifact to S3
3539 run : |
3640 aws s3 cp dist.zip s3://$S3_BUCKET/$S3_KEY
Original file line number Diff line number Diff line change 2424 - location : scripts/start_server.sh
2525 timeout : 60
2626 runas : ubuntu
27+
28+ ValidateService :
29+ - location : scripts/validate_service.sh
30+ timeout : 60
31+ runas : ubuntu
Original file line number Diff line number Diff line change @@ -3,13 +3,13 @@ const app = express()
33const port = process . env . PORT || 3000
44
55app . get ( '/' , ( req , res ) => {
6- res . send ( 'Hello World!' )
6+ res . send ( 'Hello World! (CodeDeploy Example) ' )
77} )
88
99app . get ( '/health' , ( req , res ) => {
1010 res . json ( {
1111 status : 'OK' ,
12- version : '1 .0.0' ,
12+ version : '2 .0.0' ,
1313 } )
1414} )
1515
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ echo " Validating application..."
3+ curl -f http://localhost:3000/health || exit 1
You can’t perform that action at this time.
0 commit comments