Browse Source

修改docker配置

zq940222 2 months ago
parent
commit
7277685b47
1 changed files with 3 additions and 3 deletions
  1. 3 3
      Jenkinsfile

+ 3 - 3
Jenkinsfile

@@ -55,9 +55,9 @@ pipeline {
                     )]) {
                         sh """
                             cd ${params.SERVICE}
-                            sudo docker build -t ${DOCKER_IMAGE} .
-                            echo "\${REGISTRY_PASSWORD}" | sudo docker login ${DOCKER_REGISTRY} -u \${REGISTRY_USERNAME} --password-stdin
-                            sudo docker push ${DOCKER_IMAGE}
+                            docker build -t ${DOCKER_IMAGE} .
+                            echo "\${REGISTRY_PASSWORD}" | docker login ${DOCKER_REGISTRY} -u \${REGISTRY_USERNAME} --password-stdin
+                            docker push ${DOCKER_IMAGE}
                         """
                     }
                 }