[19.02.20] TCP fix
This commit is contained in:
parent
3155cc723d
commit
2e3ada53b7
@ -8,6 +8,7 @@ env.GIT_REPOSITORY_URL = "https://${env.GIT_REPOSITORY_PATH}"
|
||||
env.GITHUB_CREDENTIALS_ID = 'Registry'
|
||||
env.DOCKER_REPOSITORY = 'registry.cryptosky.me'
|
||||
env.DOCKER_REPOSITORY_URL = "https://${env.DOCKER_REPOSITORY}"
|
||||
env.DOCKER_REPOSITORY_TCP = "tcp://${env.DOCKER_REPOSITORY}:4243"
|
||||
|
||||
env.NAMESPACE = 'production'
|
||||
env.SLAVE_LABEL = "cryptosky-aio-build"
|
||||
@ -62,8 +63,8 @@ try {
|
||||
)]
|
||||
) {
|
||||
sh "doctl auth init --access-token '${DOCTL_TOKEN}'"
|
||||
// sh "snap connect doctl:kube-config"
|
||||
sh "doctl kubernetes cluster kubeconfig save cryptosky-kubernetes-cluster-production"
|
||||
sh "kubectl get pods"
|
||||
}
|
||||
}
|
||||
|
||||
@ -94,17 +95,17 @@ try {
|
||||
stage('Deploy') {
|
||||
kubernetesDeploy configs: '**/configuration/kubernetes/*.yaml',
|
||||
deleteResource: true,
|
||||
dockerCredentials: [[credentialsId: 'Registry', url: "${env.DOCKER_REPOSITORY_URL}"]],
|
||||
dockerCredentials: [[credentialsId: 'Registry', url: "${env.DOCKER_REPOSITORY_TCP}"]],
|
||||
kubeConfig: [path: ''],
|
||||
kubeconfigId: 'Kubernetes',
|
||||
secretName: '',
|
||||
// secretName: '',
|
||||
ssh: [sshCredentialsId: '*', sshServer: ''],
|
||||
textCredentials: [certificateAuthorityData: '', clientCertificateData: '', clientKeyData: '', serverUrl: 'https://']
|
||||
}
|
||||
|
||||
stage('Tag Repository') {
|
||||
|
||||
withDockerServer([uri: "${env.DOCKER_REPOSITORY_URL}"]) {
|
||||
withDockerServer([uri: "${env.DOCKER_REPOSITORY_TCP}"]) {
|
||||
withDockerRegistry([credentialsId: 'Registry', url: "${env.DOCKER_REPOSITORY_URL}"]) {
|
||||
def image = docker.build("${env.DOCKER_REPOSITORY}/db-gateway:${env.APPLICATION_VERSION}")
|
||||
image.push()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user