Browse Source

ceshi

dev_trial
wenlele 2 years ago
parent
commit
1ac3584cbe
  1. 4
      code/VideoAccess-VCMP/api/Dockerfile
  2. 32
      jenkinsfile_vcmp_api

4
code/VideoAccess-VCMP/api/Dockerfile

@ -1,4 +1,4 @@
FROM harbor.anxinyun.cn/fs-devops/node-12:34.22-10-26-dev as builder
FROM registry.cn-hangzhou.aliyuncs.com/fs-devops/node:12-dev as builder
COPY . /var/app
@ -12,7 +12,7 @@ RUN npm cache clean -f
RUN rm -rf package-lock.json
RUN npm install --registry http://10.8.30.22:7000
FROM harbor.anxinyun.cn/fs-devops/node-12:34.22-10-26
FROM registry.cn-hangzhou.aliyuncs.com/fs-devops/node:12
COPY --from=builder --chown=node /var/app /home/node/app

32
jenkinsfile_vcmp_api

@ -1,3 +1,23 @@
// pipeline {
// agent {
// node{
// label 'jnlp-slave'
// }
// }
// stages {
// stage('Testing vcmp ......') {
// steps {
// sh 'switch-auth.sh anxinyun'
// buildName "#${BUILD_NUMBER} ~/fs-cloud/${JOB_NAME}:${IMAGE_VERSION}"
// buildDescription "harbor.anxinyun.cn/${CLOUD}/${JOB_NAME}:${IMAGE_VERSION}"
// sh 'ctr build -t harbor.anxinyun.cn/${CLOUD}/${JOB_NAME}:${IMAGE_VERSION} ./code/VideoAccess-VCMP/api'
// sh 'ctr push harbor.anxinyun.cn/${CLOUD}/${JOB_NAME}:${IMAGE_VERSION}'
// }
// }
// }
// }
pipeline {
agent {
node{
@ -6,13 +26,13 @@ pipeline {
}
stages {
stage('Testing vcmp ......') {
stage('Testing site......') {
steps {
sh 'switch-auth.sh anxinyun'
buildName "#${BUILD_NUMBER} ~/fs-cloud/${JOB_NAME}:${IMAGE_VERSION}"
buildDescription "harbor.anxinyun.cn/${CLOUD}/${JOB_NAME}:${IMAGE_VERSION}"
sh 'ctr build -t harbor.anxinyun.cn/${CLOUD}/${JOB_NAME}:${IMAGE_VERSION} ./code/VideoAccess-VCMP/api'
sh 'ctr push harbor.anxinyun.cn/${CLOUD}/${JOB_NAME}:${IMAGE_VERSION}'
buildName "#${BUILD_NUMBER} ~/smart-site/${JOB_NAME}:${IMAGE_VERSION}"
buildDescription "harbor.anxinyun.cn/smart-site/${JOB_NAME}:${IMAGE_VERSION}"
sh 'nerdctl build -t harbor.anxinyun.cn/smart-site/${JOB_NAME}:${IMAGE_VERSION} .'
sh 'nerdctl push harbor.anxinyun.cn/smart-site/${JOB_NAME}:${IMAGE_VERSION}'
}
}
}

Loading…
Cancel
Save