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:35:48 +08:00
|
|
|
image: node:16.18.1
|
2024-07-27 11:59:51 +08:00
|
|
|
commands:
|
|
|
|
- npm install
|
|
|
|
- npm run build
|
2024-07-29 10:12:57 +08:00
|
|
|
- ls
|
|
|
|
- cd dist
|
|
|
|
- ls
|
2024-07-27 11:59:51 +08:00
|
|
|
|
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 17:01:24 +08:00
|
|
|
- name: deploy
|
|
|
|
image: nginx:1.21
|
|
|
|
commands:
|
2024-07-29 10:23:23 +08:00
|
|
|
- cp -r dist/. /usr/share/nginx/html
|