46 lines
574 B
YAML
46 lines
574 B
YAML
|
---
|
||
|
kind: pipeline
|
||
|
type: docker
|
||
|
name: build
|
||
|
|
||
|
trigger:
|
||
|
branch:
|
||
|
- main
|
||
|
event:
|
||
|
- push
|
||
|
- pull_request
|
||
|
|
||
|
steps:
|
||
|
- name: lint
|
||
|
image: node:18
|
||
|
commands:
|
||
|
- npm install
|
||
|
- npm run lint
|
||
|
- name: build
|
||
|
image: node:18
|
||
|
commands:
|
||
|
- npm run build
|
||
|
|
||
|
---
|
||
|
kind: pipeline
|
||
|
type: docker
|
||
|
name: deploy
|
||
|
|
||
|
trigger:
|
||
|
branch:
|
||
|
- main
|
||
|
event:
|
||
|
- push
|
||
|
|
||
|
steps:
|
||
|
- name: build
|
||
|
image: node:18
|
||
|
commands:
|
||
|
- npm install
|
||
|
- npm run build
|
||
|
---
|
||
|
kind: signature
|
||
|
hmac: 6154618a4e25c2da0b4f8b39783abc0ab77b40fabab8f714d89438c21ffd6790
|
||
|
|
||
|
...
|