baseui/.gitlab-ci.yml

39 lines
605 B
YAML
Raw Normal View History

2017-08-31 19:40:42 +02:00
2017-08-24 11:16:07 +02:00
cache:
paths:
- node_modules/
stages:
- build
# - test
2017-08-31 20:24:37 +02:00
- deploy
2017-08-24 11:16:07 +02:00
2017-08-31 20:43:08 +02:00
build_ui:
2017-08-31 20:24:37 +02:00
image: node
2017-08-31 19:40:42 +02:00
tags:
- docker
2017-08-24 11:16:07 +02:00
stage: build
script:
2017-08-31 20:24:37 +02:00
- git submodule update --init
- npm install
2017-08-24 11:16:07 +02:00
- npm run build
2017-08-31 20:43:08 +02:00
artifacts:
name: "basispanel-ui-$CI_COMMIT_REF_NAME"
expire_in: 1 week
paths:
- assets
- build
- conf
- index.html
2017-08-31 20:24:37 +02:00
deploy_master:
image: mwienk/docker-lftp
tags:
- docker
2017-08-31 20:43:08 +02:00
dependencies:
- build_ui
2017-08-31 20:24:37 +02:00
stage: deploy
script:
- ls -lh