Modified build process to build the frontend only once
the build failed
Details
the build failed
Details
This commit is contained in:
parent
b2e086c3e6
commit
aa1010d74a
18
.drone.yml
18
.drone.yml
|
@ -30,6 +30,8 @@ pipeline:
|
||||||
group: build
|
group: build
|
||||||
commands:
|
commands:
|
||||||
- cd frontend/
|
- cd frontend/
|
||||||
|
- rm siteconfig.json
|
||||||
|
- echo '{"API_URL": "/api/v1/"}' > siteconfig.json
|
||||||
- npm install
|
- npm install
|
||||||
- npm run build
|
- npm run build
|
||||||
when:
|
when:
|
||||||
|
@ -83,14 +85,14 @@ pipeline:
|
||||||
when:
|
when:
|
||||||
event: [tag, push]
|
event: [tag, push]
|
||||||
|
|
||||||
static-build-frontend:
|
# static-build-frontend:
|
||||||
image: webhippie/nodejs:current
|
# image: webhippie/nodejs:current
|
||||||
pull: true
|
# pull: true
|
||||||
group: build-static
|
# group: build-static
|
||||||
commands:
|
# commands:
|
||||||
- make release-frontend
|
# - make release-frontend
|
||||||
when:
|
# when:
|
||||||
event: [push, tag ]
|
# event: [push, tag ]
|
||||||
|
|
||||||
after-build-static:
|
after-build-static:
|
||||||
image: karalabe/xgo-latest:latest
|
image: karalabe/xgo-latest:latest
|
||||||
|
|
Loading…
Reference in New Issue