Commit 8d38dd2a authored by Øyvind gjesdal's avatar Øyvind gjesdal
Browse files

rewrite CI from search client. Add diff of semantic files

parent f110164f
Pipeline #48516 failed with stages
in 57 seconds
stages:
- admin_test
admin_test:
image: oyvindlg/gitlab-ci-library:node-12
stage: "admin_test"
before_script:
- eval $(ssh-agent -s)
- echo $MARCUS_TEST_KEY | base64 --decode | ssh-add -
- npm install -g gulp
variables:
DEST: :/var/www/html/marcus-admin/components
PROD_ONLY_BRANCH: master
stages:
- build
- deploy
- deploy_prod
build:
image: oyvindlg/gitlab-ci-library:node-6
stage: "build"
before_script:
- npm install -g gulp@3.9.0
- npm install gulp@3.9.0
script:
- cp default.semantic.json semantic.json
- npm install
- cp -f ./static/themes/default.theme.config ./static/semantic/src/theme.config
- cp -R ./static/themes/uib ./static/semantic/src/themes/
- cd static/semantic
- npx gulp build
- cd ../..
- rsync -r -e "ssh -o StrictHostKeyChecking=no" --exclude=./static/js/blackbox-search --delete ./ $MARCUS_USER@["$MARCUS_TEST_SERVER"]:/var/www/html/marcus-admin/components
tags:
- spes
- rm -rf node_modules/semantic/dist static/semantic/components && cp -r node_modules/semantic-ui static/semantic/
- cp -f ./static/themes/default.theme.config ./static/semantic/src/theme.config && cp -f ./default.semantic.json static/semantic/semantic.json && cp -r static/themes/uib static/semantic/src/themes/
- cd static/semantic && gulp build
artifacts:
paths:
- static/semantic
- node_modules/fomantic-ui
- semantic
- index.html
- dist
deploy:
image: oyvindlg/gitlab-ci-library:node
stage: deploy
before_script:
- eval $(ssh-agent -s)
- echo $MARCUS_TEST_KEY | base64 --decode | ssh-add -
script:
- rsync -r -e "ssh -o StrictHostKeyChecking=no" --delete ./ $MARCUS_USER@["$MARCUS_TEST_SERVER"]:"$SEARCH_CLIENT_DEST"
tags:
- spes
deploy_prod:
image: oyvindlg/gitlab-ci-library:node
stage: deploy_prod
before_script:
- eval $(ssh-agent -s)
- echo $MARCUS_PROD_KEY | base64 --decode | ssh-add -
script:
- rsync -r -e "ssh -o StrictHostKeyChecking=no" --delete ./ $MARCUS_USER@["$MARCUS_SERVER"]:"$SEARCH_CLIENT_DEST"
tags:
- spes
only:
- $PROD_ONLY_BRANCH
when: manual
{
"base": "static/semantic/",
"base": "",
"paths": {
"source": {
"config": "src/theme.config",
"definitions": "src/definitions/",
"site": "src/site/",
"themes": "../themes/"
"themes": "src/themes/"
},
"output": {
"packaged": "dist/",
......
......@@ -19,7 +19,7 @@
"license": "ISC",
"dependencies": {
"datatables": "^1.10.13",
"fomantic-ui": "^2.8.4",
"semantic-ui": "2.2.13",
"leaflet": "^1.2.0",
"openseadragon": "^2.3.1",
"timelinejs3": "^3.4.0"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment