We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93551af commit c5c3d5eCopy full SHA for c5c3d5e
JenkinsFileKubernetes
@@ -37,5 +37,14 @@ pipeline
37
sh 'docker build -t 149536451818.dkr.ecr.ap-south-1.amazonaws.com/maven-web-application:${buildNumber} .'
38
}
39
40
+
41
+ stage("Authenticate and Push Docker Image to AWS ECR")
42
+ {
43
+ steps()
44
45
+ ss 'aws ecr get-login-password --region ap-south-1 | docker login --username AWS --password-stdin 149536451818.dkr.ecr.ap-south-1.amazonaws.com'
46
+ sh 'docker push 149536451818.dkr.ecr.ap-south-1.amazonaws.com/maven-web-application:${buildNumber}'
47
+ }
48
49
50
0 commit comments