Browse Source

更新 'jenkinsfile'

docker修改为nerdctl
master
李玉 2 years ago
parent
commit
84cbc86980
  1. 4
      jenkinsfile

4
jenkinsfile

@ -10,8 +10,8 @@ pipeline {
steps { steps {
buildName "#${BUILD_NUMBER} ~/devops/${JOB_NAME}:${IMAGE_VERSION}" buildName "#${BUILD_NUMBER} ~/devops/${JOB_NAME}:${IMAGE_VERSION}"
buildDescription "harbor.anxinyun.cn/devops/${JOB_NAME}:${IMAGE_VERSION}" buildDescription "harbor.anxinyun.cn/devops/${JOB_NAME}:${IMAGE_VERSION}"
sh 'docker build -t harbor.anxinyun.cn/devops/${JOB_NAME}:${IMAGE_VERSION} ./web' sh 'nerdctl build -t harbor.anxinyun.cn/devops/${JOB_NAME}:${IMAGE_VERSION} ./web'
sh 'docker push harbor.anxinyun.cn/devops/${JOB_NAME}:${IMAGE_VERSION}' sh 'nerdctl push harbor.anxinyun.cn/devops/${JOB_NAME}:${IMAGE_VERSION}'
} }
} }
} }

Loading…
Cancel
Save