File tree 1 file changed +14
-14
lines changed
1 file changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -34,25 +34,25 @@ slaveTemplates.dockerTemplate { label ->
34
34
-f docker/Dockerfile ."
35
35
sh " docker push ${ awsRegistry} /${ imageName} :${ branchNameSanitized} "
36
36
sh " docker push ${ awsRegistry} /${ imageName} :${ scmVars.GIT_COMMIT} "
37
- }
38
37
39
- if (branch == ' master' || branch == ' main' ) {
38
+ if (branch == ' master' || branch == ' main' ) {
40
39
sh """
41
40
docker tag ${ awsRegistry} /${ imageName} :${ scmVars.GIT_COMMIT} ${ awsRegistry} /${ imageName} :stage;
42
41
docker push ${ awsRegistry} /${ imageName} :stage
43
42
"""
44
- }
45
- if (isProductionBuild) {
46
- sh """
47
- docker tag ${ awsRegistry} /${ imageName} :${ scmVars.GIT_COMMIT} ${ awsRegistry} /${ imageName} :production;
48
- docker push ${ awsRegistry} /${ imageName} :production
49
- """
50
- }
51
- if (isTagDefined) {
52
- sh """
53
- docker tag ${ awsRegistry} /${ imageName} :${ scmVars.GIT_COMMIT} ${ awsRegistry} /${ imageName} :${ tag} ;
54
- docker push ${ awsRegistry} /${ imageName} :${ tag}
55
- """
43
+ }
44
+ if (isProductionBuild) {
45
+ sh """
46
+ docker tag ${ awsRegistry} /${ imageName} :${ scmVars.GIT_COMMIT} ${ awsRegistry} /${ imageName} :production;
47
+ docker push ${ awsRegistry} /${ imageName} :production
48
+ """
49
+ }
50
+ if (isTagDefined) {
51
+ sh """
52
+ docker tag ${ awsRegistry} /${ imageName} :${ scmVars.GIT_COMMIT} ${ awsRegistry} /${ imageName} :${ tag} ;
53
+ docker push ${ awsRegistry} /${ imageName} :${ tag}
54
+ """
55
+ }
56
56
}
57
57
}
58
58
}
You can’t perform that action at this time.
0 commit comments