Prepare for deployment
This commit is contained in:
parent
f85758ef33
commit
d440d85dc1
7 changed files with 79 additions and 9 deletions
20
.drone.yml
20
.drone.yml
|
|
@ -8,6 +8,16 @@ platform:
|
|||
arch: arm
|
||||
|
||||
steps:
|
||||
- name: build front
|
||||
image: node:17-alpine
|
||||
commands:
|
||||
- mkdir deploy
|
||||
- apk --no-cache add python2 build-base
|
||||
- cd ui
|
||||
- npm install --network-timeout=100000
|
||||
- npm run build
|
||||
- tar chjf ../deploy/static.tar.bz2 build
|
||||
|
||||
- name: vet
|
||||
image: golang:alpine
|
||||
commands:
|
||||
|
|
@ -44,6 +54,16 @@ platform:
|
|||
arch: arm64
|
||||
|
||||
steps:
|
||||
- name: build front
|
||||
image: node:17-alpine
|
||||
commands:
|
||||
- mkdir deploy
|
||||
- apk --no-cache add python2 build-base
|
||||
- cd ui
|
||||
- npm install --network-timeout=100000
|
||||
- npm run build
|
||||
- tar chjf ../deploy/static.tar.bz2 build
|
||||
|
||||
- name: vet
|
||||
image: golang:alpine
|
||||
commands:
|
||||
|
|
|
|||
Reference in a new issue