-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJenkinsfile
More file actions
32 lines (27 loc) · 921 Bytes
/
Jenkinsfile
File metadata and controls
32 lines (27 loc) · 921 Bytes
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
#!groovy
node('linux') {
stage 'Checkout'
checkout scm
stage 'Docker Build and Push - Quay.io'
def quayUsername = "deis+jenkins"
def quayEmail = "deis+jenkins@deis.com"
withCredentials([[$class: 'StringBinding',
credentialsId: '8317a529-10f7-40b5-abd4-a42f242f22f0',
variable: 'QUAY_PASSWORD']]) {
sh """
docker login -e="${quayEmail}" -u="${quayUsername}" -p="\${QUAY_PASSWORD}" quay.io
make bootstrap build push
"""
}
stage 'Docker Build and Push - DockerHub'
def hubUsername = "deisbot"
def hubEmail = "dummy-address@deis.com"
withCredentials([[$class: 'StringBinding',
credentialsId: '0d1f268f-407d-4cd9-a3c2-0f9671df0104',
variable: 'DOCKER_PASSWORD']]) {
sh """
docker login -e="${hubEmail}" -u="${hubUsername}" -p="\${DOCKER_PASSWORD}"
DEIS_REGISTRY='' make bootstrap build push
"""
}
}