-
Notifications
You must be signed in to change notification settings - Fork 2
/
Jenkinsfile
50 lines (49 loc) · 1.6 KB
/
Jenkinsfile
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
pipeline {
agent any
stages {
stage('Docker build') {
steps {
sh 'docker build -t p8/local-directory-provisioner ./ldp'
}
}
stage('Docker tag') {
steps {
sh 'docker tag p8/local-directory-provisioner hub.predic8.de/p8/local-directory-provisioner:$BUILD_NUMBER'
sh 'docker tag p8/local-directory-provisioner hub.predic8.de/p8/local-directory-provisioner:latest'
}
}
stage('Docker push') {
steps {
sh 'docker push hub.predic8.de/p8/local-directory-provisioner:$BUILD_NUMBER'
sh 'docker push hub.predic8.de/p8/local-directory-provisioner:latest'
}
}
/*
stage('Apply Service Account') {
steps {
sh 'kubectl $KUBECTL_OPTS apply -f ./ldp/deploy/rbac/serviceaccount.yaml'
}
}
stage('Apply Storage Claim') {
steps {
sh 'kubectl $KUBECTL_OPTS apply -f ./ldp/deploy/rbac/storageclass.yaml'
}
}
stage('Apply Cluster Role') {
steps {
sh 'kubectl $KUBECTL_OPTS apply -f ./ldp/deploy/rbac/clusterrole.yaml'
}
}
stage('Apply Cluster Role Binding') {
steps {
sh 'kubectl $KUBECTL_OPTS apply -f ./ldp/deploy/rbac/clusterrolebinding.yaml'
}
}
stage('Apply Daemon Set') {
steps {
sh 'kubectl $KUBECTL_OPTS apply -f ./ldp/deploy/rbac/daemonset.yaml'
}
}
*/
}
}