environment test
This commit is contained in:
parent
18f8a477a7
commit
001cd70109
4
Jenkinsfile
vendored
4
Jenkinsfile
vendored
|
@ -77,7 +77,7 @@ podTemplate(
|
|||
credentialsId: 'harbor.loafle.net',
|
||||
usernameVariable: 'HARBOR_USER',
|
||||
passwordVariable: 'HARBOR_PASSWORD']]) {
|
||||
env.CONTAINER_IMAGE_NAME = prototype/${env.PROJECT_NAME}
|
||||
env.CONTAINER_IMAGE_NAME = prototype/env.PROJECT_NAME
|
||||
sh """
|
||||
docker login -u "${HARBOR_USER}" -p "${HARBOR_PASSWORD}" ${dockerRegistryUrl}
|
||||
docker build -t ${dockerRegistryUrl}/${env.CONTAINER_IMAGE_NAME}:${env.PROJECT_VERSION} --build-arg PROJECT_NAME=${env.PROJECT_NAME} --build-arg PROJECT_VERSION=${env.PROJECT_VERSION} .
|
||||
|
@ -88,7 +88,7 @@ podTemplate(
|
|||
}
|
||||
|
||||
stage('Deploy Application on K8s') {
|
||||
container('kubectl'){
|
||||
container('kubectl') {
|
||||
withKubeConfig([
|
||||
credentialsId: 'microk8s-cluster',
|
||||
serverUrl: env.K8s_SERVER_URL,
|
||||
|
|
Loading…
Reference in New Issue
Block a user