baseui/.gitlab-ci.yml
2017-08-31 21:21:47 +02:00

42 lines
868 B
YAML

cache:
paths:
- node_modules/
stages:
- build
# - test
- deploy
build_ui:
image: node
tags:
- docker
stage: build
script:
- git submodule update --init
- npm install
- npm run build
artifacts:
name: "basispanel-ui-$CI_COMMIT_REF_NAME"
expire_in: 1h
paths:
- assets
- build
- conf
- index.html
deploy_master:
image: mwienk/docker-lftp
tags:
- docker
dependencies:
- build_ui
stage: deploy
script:
- mkdir _for_upload
- mv assets build conf index.html _for_upload
- lftp -c "set sftp:auto-confirm yes; open -u intern_basispanel_ui,$FTP_PASSWORD sftp://ftp.basehosts.de;mkdir -f /$CI_COMMIT_REF_NAME; mirror -v -c -e -R -L _for_upload /$CI_COMMIT_REF_NAME/"