35 lines
572 B
YAML
35 lines
572 B
YAML
kind: pipeline
|
|
type: docker
|
|
name: release-tag
|
|
|
|
trigger:
|
|
event:
|
|
- tag
|
|
|
|
steps:
|
|
- name: install
|
|
image: node:20-alpine
|
|
commands:
|
|
- npm ci
|
|
|
|
- name: test
|
|
image: node:20-alpine
|
|
depends_on:
|
|
- install
|
|
commands:
|
|
- npm test
|
|
|
|
- name: release
|
|
image: node:20-alpine
|
|
depends_on:
|
|
- test
|
|
environment:
|
|
COS_BUCKET: wksgx-1343191620
|
|
COS_REGION: ap-nanjing
|
|
COS_SECRET_ID:
|
|
from_secret: cos_secret_id
|
|
COS_SECRET_KEY:
|
|
from_secret: cos_secret_key
|
|
commands:
|
|
- npm run release:tag
|