2024-07-27 11:42:24 +08:00
|
|
|
kind: pipeline
|
|
|
|
name: default
|
|
|
|
|
|
|
|
steps:
|
2024-07-27 11:59:51 +08:00
|
|
|
- name: build
|
2024-07-27 16:34:38 +08:00
|
|
|
image: alpine
|
2024-07-27 11:59:51 +08:00
|
|
|
commands:
|
|
|
|
- npm install
|
|
|
|
- npm run build
|
|
|
|
|
2024-07-27 15:31:00 +08:00
|
|
|
#- name: test
|
|
|
|
# image: node:16.18.1
|
2024-07-27 11:59:51 +08:00
|
|
|
# commands:
|
2024-07-27 15:31:00 +08:00
|
|
|
# - npm run test
|
|
|
|
|
2024-07-27 16:18:27 +08:00
|
|
|
#- name: deploy
|
|
|
|
# image: nginx:1.21
|
|
|
|
# commands:
|
|
|
|
# - cp -r build/* /usr/share/nginx/html
|