This commit is contained in:
26
.drone.yml
Normal file
26
.drone.yml
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
|
name: default
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: build-frontend
|
||||||
|
image: node:19
|
||||||
|
commands:
|
||||||
|
- cd web
|
||||||
|
- npm config set registry=https://registry.npmmirror.com
|
||||||
|
- npm install
|
||||||
|
- npm run build
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: build-backend
|
||||||
|
image: golang
|
||||||
|
environment:
|
||||||
|
GOPROXY: "goproxy.cn"
|
||||||
|
commands:
|
||||||
|
- go build -v .
|
||||||
|
|
||||||
|
step:
|
||||||
|
- name: deploy:
|
||||||
|
image: golang
|
||||||
|
commands:
|
||||||
|
- echo "Deploy successed"
|
||||||
Reference in New Issue
Block a user