23 lines
633 B
YAML
23 lines
633 B
YAML
stages:
|
|
- name: Build
|
|
steps:
|
|
- runScriptConfig:
|
|
image: daocloud.io/library/node
|
|
shellScript: |-
|
|
npm config set registry https://registry.npm.taobao.org/
|
|
npm install --progress=false --ignore-scripts
|
|
npm run docker:dist
|
|
- name: Publish
|
|
steps:
|
|
- publishImageConfig:
|
|
dockerfilePath: ./build/Dockerfile
|
|
buildContext: ./build
|
|
tag: symes-web:${CICD_EXECUTION_SEQUENCE}
|
|
- name: Deploy
|
|
steps:
|
|
- applyYamlConfig:
|
|
path: ./deployment.yaml
|
|
# branch conditions for the pipeline
|
|
branch:
|
|
include: [ syproduction ]
|