Skip to content

Commit fdcc370

Browse files
committedOct 10, 2018
added skeleton Jenkinsfile
1 parent 1b16d9f commit fdcc370

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed
 

‎Jenkinsfile

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
node {
2+
stage('Checkout') {
3+
checkout scm
4+
}
5+
6+
stage('Build') {
7+
sh 'docker image build -t lukebond/demo-api:latest .'
8+
}
9+
10+
stage('Push') {
11+
//withCredentials([
12+
// usernamePassword(credentialsId: 'docker-credentials',
13+
// usernameVariable: 'USERNAME',
14+
// passwordVariable: 'PASSWORD')]) {
15+
// sh 'docker login -p "${PASSWORD}" -u "${USERNAME}"'
16+
// sh 'docker image push ${USERNAME}/demo-api:latest'
17+
//}
18+
}
19+
20+
stage('Deploy') {
21+
//withCredentials([
22+
// file(credentialsId: 'kube-config',
23+
// variable: 'KUBECONFIG')]) {
24+
// sh 'kubectl apply -f deployment.yaml'
25+
//}
26+
}
27+
}

0 commit comments

Comments
 (0)