24 lines
339 B
YAML
24 lines
339 B
YAML
kind: pipeline
|
|
name: default
|
|
|
|
steps:
|
|
- name: build
|
|
image: node:16.18.1
|
|
commands:
|
|
- npm install
|
|
- npm run build
|
|
- ls
|
|
- cd dist
|
|
- ls
|
|
- cd build
|
|
- ls
|
|
|
|
#- name: test
|
|
# image: node:16.18.1
|
|
# commands:
|
|
# - npm run test
|
|
|
|
- name: deploy
|
|
image: nginx:1.21
|
|
commands:
|
|
- cp -r build/. /usr/share/nginx/html |