File tree Expand file tree Collapse file tree 4 files changed +10
-17
lines changed Expand file tree Collapse file tree 4 files changed +10
-17
lines changed Original file line number Diff line number Diff line change @@ -5,13 +5,13 @@ pipeline {
55
66 stages {
77
8- stage(' Git' ) {
8+ stage(' Source: Git' ) {
99 steps {
1010 git ' https://github.com/sd031/aws_codebuild_codedeploy_nodeJs_demo.git'
1111 }
1212 }
1313
14- stage(' Build' ) {
14+ stage(' Build:Node ' ) {
1515 steps {
1616 sh ' npm install'
1717 // sh '<<Build Command>>' run any commands as needed
@@ -23,5 +23,11 @@ pipeline {
2323 // sh 'node test'
2424 // }
2525 // }
26+
27+ stage(' Save:Artifact' ) {
28+ steps {
29+ archiveArtifacts artifacts : ./
30+ }
31+ }
2632 }
2733}
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ const config = require('config')
55console . log ( config ) ;
66
77app . get ( '/' , ( req , res ) => {
8- res . send ( 'CICD App V4 !' )
8+ res . send ( 'CICD App V2 !' )
99} )
1010
1111app . get ( '/status' , ( req , res ) => {
Original file line number Diff line number Diff line change 1- Learn how to make 2x Faster Docker Build in AWS Cloud using AWS CodeBuild Cache system
2- Build Cache is so important part and many miss the point
3- 1) Process time reduce by nearly up to 90%
4- 2) Don't compile which is already compiled
5- 3) Re-use the assets/artifacts that you have made
6- 4) Don't pull the entire repo, instead just pull what exactly changes (saves a lot of time)
7- 5) If you are building docker containers, it makes a lot of sense to store docker layers
8- 6) If your dependencies are all downloaded from the internet, don't do it every time instead store in s3 so that download will be a lot faster
9-
10- This list can go on and on...
11-
12- Feel free to watch this tutorial and let me know if have any query
13-
14- https://www.youtube.com/watch?v=X79lCrFpEmU
1+ This is a sample build file
You can’t perform that action at this time.
0 commit comments