Skip to content

Commit

Permalink
add jenkins step to deploy to kubernetes
Browse files Browse the repository at this point in the history
  • Loading branch information
mazma1 committed Nov 20, 2018
1 parent ca8a3c8 commit 53d2ba6
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions frontend/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,14 @@ node {
}
}

// stage('deploy to Kubernetes') {
// withCredentials([string(credentialsId: 'REGISTRY-URL', variable: 'REGISTRY_URL')]) {
// sh '''
// REPO="frontend-service"
// NEW_SERVICE_IMAGE="${REGISTRY_URL}/${REPO}:${BUILD_NUMBER}"
// #Update the image of the frontend container
// kubectl set image deployment/frontend frontend=${NEW_SERVICE_IMAGE}
// '''
// }
// }
stage('deploy to Kubernetes') {
withCredentials([string(credentialsId: 'REGISTRY-URL', variable: 'REGISTRY_URL')]) {
sh '''
REPO="frontend-service"
NEW_SERVICE_IMAGE="${REGISTRY_URL}/${REPO}:${BUILD_NUMBER}"
#Update the image of the frontend container
kubectl set image deployment/frontend frontend=${NEW_SERVICE_IMAGE}
'''
}
}
}

0 comments on commit 53d2ba6

Please sign in to comment.