environment test
This commit is contained in:
parent
51c7147655
commit
dc6fd2f988
6
Jenkinsfile
vendored
6
Jenkinsfile
vendored
|
@ -96,11 +96,7 @@ podTemplate(
|
|||
clusterName: env.K8s_CLUSTER_NAME]) {
|
||||
sh """
|
||||
DEPLOY_DATE=$(date +"%Y-%m-%d %H:%M:%S")
|
||||
sed -i.bak 's#__REGISTRY_URL__#'"${dockerRegistryUrl}"'#' ./.k8s/deployment.yaml
|
||||
sed -i.bak 's#__IMAGE_NAME__#'"${env.CONTAINER_IMAGE_NAME}"'#' ./.k8s/deployment.yaml
|
||||
sed -i.bak 's#__IMAGE_TAG__#'"${env.PROJECT_VERSION}"'#' ./.k8s/deployment.yaml
|
||||
sed -i.bak 's#__DEPLOY_DATE__#'"${DEPLOY_DATE}"'#' ./.k8s/deployment.yaml
|
||||
kubectl apply -f ./.k8s/deployment.yaml
|
||||
sed -i -e 's*__REGISTRY_URL__*${dockerRegistryUrl}*g' ./.k8s/deployment.yaml
|
||||
"""
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user