代码拉取完成,页面将自动刷新
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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。