From 513d9be1c99628826c571fedfc8993e45bd71acc Mon Sep 17 00:00:00 2001 From: gokhangunduz Date: Fri, 29 Sep 2023 16:07:29 +0300 Subject: [PATCH] refactor(jenkinsfile): update dev jenkinsfile --- docker/Jenkinsfile-public-dev | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docker/Jenkinsfile-public-dev b/docker/Jenkinsfile-public-dev index 919b050b..f1cceb92 100644 --- a/docker/Jenkinsfile-public-dev +++ b/docker/Jenkinsfile-public-dev @@ -59,7 +59,7 @@ pipeline { stage('Install Depends && Build') { steps { container('ubuntu') { - withCredentials([file(credentialsId: 'frontend-public-dev', variable: 'text')]) { + withCredentials([file(credentialsId: 'frontend-public-dev-env', variable: 'text')]) { writeFile file:'./.env', text: readFile(text) } sh 'npm i --force' @@ -74,11 +74,11 @@ pipeline { stage('Docker Build && Push') { steps { container('docker') { - sh "docker build -t robolaunchio/ui-httpd:${env.VER} ." + sh "docker build -t robolaunchio/frontend-public-dev-httpd:${env.VER} ." withCredentials([usernamePassword(credentialsId: 'dockerhub-robolaunchio', passwordVariable: 'password', usernameVariable: 'username')]) { sh 'docker login -u $username -p $password' } - sh "docker push robolaunchio/ui-httpd:${env.VER}" + sh "docker push robolaunchio/frontend-public-dev-httpd:${env.VER}" } } } @@ -86,7 +86,7 @@ pipeline { steps { container('ubuntu') { withCredentials([file(credentialsId: 'hetzner_prod', variable: 'config')]) { - sh "kubectl set image deployment.v1.apps/ui -n ui ui=robolaunchio/ui-httpd:${env.VER} --kubeconfig=$config" + sh "kubectl set image deployment.v1.apps/ui -n ui ui=robolaunchio/frontend-public-dev-httpd:${env.VER} --kubeconfig=$config" } } }