代码拉取完成,页面将自动刷新
stages:
- package
variables:
APP: 50projects50days
ALIYUN_DOCKER_REGISTRY: registry.cn-beijing.aliyuncs.com
ALIYUN_APP_DOCKER_IMAGE: $ALIYUN_DOCKER_REGISTRY/jcenter/$APP:$CI_COMMIT_REF_NAME-$CI_PIPELINE_ID
build-node:prod:
stage: package
image: plfmv1h0.mirror.aliyuncs.com/wallbase/node:12.20.0-alpine-docker
before_script:
- docker login -u [email protected] -p $ALIYUN_DOCKER_PASSWORD $ALIYUN_DOCKER_REGISTRY
- npm config set registry https://registry.npm.taobao.org
- yarn config set registry https://registry.npm.taobao.org -g
- yarn config set sass_binary_site https://registry.npm.taobao.org/mirrors/node-sass/ -g
- yarn config set fse_binary_host_mirror https://registry.npm.taobao.org/mirrors/fsevents -g
script:
- yarn install --no-lockfile
- yarn build
- docker build -t $ALIYUN_APP_DOCKER_IMAGE .
- docker tag $ALIYUN_APP_DOCKER_IMAGE $ALIYUN_DOCKER_REGISTRY/jcenter/$APP:latest
- docker push $ALIYUN_DOCKER_REGISTRY/jcenter/$APP:latest
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。