forked from nodejs/docker-node
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.jenkins
55 lines (47 loc) · 1.43 KB
/
.jenkins
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
pipeline {
agent any
triggers {
upstream(upstreamProjects: 'vapor-ware/buildpack-deps/master', threshold: hudson.model.Result.SUCCESS)
}
stages {
stage('Sync') {
steps {
sh './update.sh'
}
}
stage('Build') {
parallel {
stage("Build node:11") {
steps {
sh "docker build -t vaporio/node:11 11/bionic"
}
}
stage("Build node:12") {
steps {
sh "docker build -t vaporio/node:12 12/bionic"
}
}
stage("Build node:13") {
steps {
sh "docker build -t vaporio/node:13 13/bionic"
}
}
stage("Build node:14") {
steps {
sh "docker build -t vaporio/node:14 14/bionic"
}
}
}
}
stage('Publish') {
steps {
withDockerRegistry(registry: [credentialsId: 'vio-docker-hub']) {
sh "docker push vaporio/node:11"
sh "docker push vaporio/node:12"
sh "docker push vaporio/node:13"
sh "docker push vaporio/node:14"
}
}
}
}
}