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 +}