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 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