3 Star 0 Fork 0

simple-core/web-reactjs-template

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
.drone.yml 2.61 KB
一键复制 编辑 原始数据 按行查看 历史
windwithlife 提交于 2022-04-21 09:42 . initialize project
kind: pipeline
type: docker
name: simpleweb-PROD
steps:
- name: 编译打包代码
image: node:12.19.0-alpine
volumes:
- name : mvncache
path : /root/.m2
commands:
- echo 'this is a website'
- cd ./
- npm install
- npm run build
- name: 构建镜像&PUSH镜像到Hub(PROD).
image: plugins/docker
settings:
dockerfile: ./release/prod/Dockerfile
use_cache: true
repo: ccr.ccs.tencentyun.com/windwithlife/project-web
registry: https://ccr.ccs.tencentyun.com
mirror: https://89cgb0wn.mirror.aliyuncs.com
username: 100008098144
password: password7&
# 更多变量参考https://docs.drone.io/pipeline/environment/reference/
tags:
- ${DRONE_TAG=latest}
- build-${DRONE_BUILD_NUMBER}
- name: 部署到K3s集群(PROD)
image: bh90210/dron8s:latest
settings:
yaml: ./release/prod/deployment.yaml
kubeconfig:
from_secret: kubeconfig
app_name: project-web
image_name: ccr.ccs.tencentyun.com/windwithlife/project-web
soa_gateway: www.zhangyongqiao.com
soa_gateway_cert: api-koudaibook-cert
build_tag: build-${DRONE_BUILD_NUMBER}
volumes:
- name: mvncache
host:
path: /var/lib/cache/.m2
trigger:
branch:
- master
event:
- push
---
kind: pipeline
type: docker
name: simpleweb-UAT
steps:
- name: 编译打包代码
image: node:12.19.0-alpine
volumes:
- name : mvncache
path : /root/.m2
commands:
- echo 'test echo'
- cd ./
- npm install
- npm run build
- name: 构建镜像&PUSH镜像到Hub(UAT).
image: plugins/docker
settings:
dockerfile: ./release/prod/Dockerfile
use_cache: true
repo: ccr.ccs.tencentyun.com/windwithlife/project-web
registry: https://ccr.ccs.tencentyun.com/
mirror: https://89cgb0wn.mirror.aliyuncs.com
username: 100008098144
password: password7&
# 更多变量参考https://docs.drone.io/pipeline/environment/reference/
tags:
- ${DRONE_TAG=latest}
- build-${DRONE_BUILD_NUMBER}
- name: 部署到K3S集群-(UAT)
image: bh90210/dron8s:latest
settings:
yaml: ./release/prod/deployment.yaml
kubeconfig:
from_secret: kubeconfig
app_name: project-web
image_name: ccr.ccs.tencentyun.com/windwithlife/project-web
soa_gateway: www.zhangyongqiao.com
soa_gateway_cert: api-koudaibook-cert
build_tag: build-${DRONE_BUILD_NUMBER}
volumes:
- name: mvncache
host:
path: /var/lib/cache/.m2
trigger:
branch:
- uat
event:
- push
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/simple-core/web-reactjs-template.git
git@gitee.com:simple-core/web-reactjs-template.git
simple-core
web-reactjs-template
web-reactjs-template
master

搜索帮助