Modified build process to build the frontend only once
the build failed Details

This commit is contained in:
konrad 2018-01-12 10:11:56 +01:00 committed by kolaente
parent b2e086c3e6
commit aa1010d74a
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 10 additions and 8 deletions

View File

@ -30,6 +30,8 @@ pipeline:
group: build
commands:
- cd frontend/
- rm siteconfig.json
- echo '{"API_URL": "/api/v1/"}' > siteconfig.json
- npm install
- npm run build
when:
@ -83,14 +85,14 @@ pipeline:
when:
event: [tag, push]
static-build-frontend:
image: webhippie/nodejs:current
pull: true
group: build-static
commands:
- make release-frontend
when:
event: [push, tag ]
# static-build-frontend:
# image: webhippie/nodejs:current
# pull: true
# group: build-static
# commands:
# - make release-frontend
# when:
# event: [push, tag ]
after-build-static:
image: karalabe/xgo-latest:latest