1 Star 5 Fork 2

lockbur/50projects50days

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.gitlab-ci.yml 1005 Bytes
一键复制 编辑 原始数据 按行查看 历史
wangkun32 提交于 2022-09-04 21:00 . 50天50项目
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
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/lockbur/50projects50days.git
[email protected]:lockbur/50projects50days.git
lockbur
50projects50days
50projects50days
master

搜索帮助