From 6e443f37deead936dace506b45ca5aca94682d36 Mon Sep 17 00:00:00 2001 From: sid2516 <121889043+sid2516@users.noreply.github.com> Date: Tue, 7 May 2024 12:17:02 +0530 Subject: [PATCH] Update pipeline.txt --- pipeline.txt | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pipeline.txt b/pipeline.txt index b0d0eec2..2d4b9bc3 100644 --- a/pipeline.txt +++ b/pipeline.txt @@ -54,20 +54,20 @@ pipeline{ script{ withDockerRegistry(credentialsId: 'docker', toolName: 'docker'){ sh "docker build --build-arg TMDB_V3_API_KEY= -t netflix ." - sh "docker tag netflix nasi101/netflix:latest " - sh "docker push nasi101/netflix:latest " + sh "docker tag netflix sid2516/netflix:latest " + sh "docker push sid2516/netflix:latest " } } } } stage("TRIVY"){ steps{ - sh "trivy image nasi101/netflix:latest > trivyimage.txt" + sh "trivy image sid2516/netflix:latest > trivyimage.txt" } } stage('Deploy to container'){ steps{ - sh 'docker run -d -p 8081:80 nasi101/netflix:latest' + sh 'docker run -d -p 8081:80 sid2516/netflix:latest' } } stage('Deploy to kubernets'){ @@ -91,8 +91,8 @@ pipeline{ body: "Project: ${env.JOB_NAME}
" + "Build Number: ${env.BUILD_NUMBER}
" + "URL: ${env.BUILD_URL}
", - to: 'iambatmanthegoat@gmail.com', #change mail here + to: 'siddharth.as2516@gmail.com', #change mail here attachmentsPattern: 'trivyfs.txt,trivyimage.txt' } } -} \ No newline at end of file +}