Skip to content
Snippets Groups Projects
Verified Commit dc1e2a7b authored by Frank Sauerburger's avatar Frank Sauerburger
Browse files

Add uhepp-js built to CI

parent ef1cffa6
Branches 2-handle-printer-select-field
No related tags found
1 merge request!9Draft: Resolve "Add React interface"
Pipeline #7239 failed
client_secret
.env
uhepp_org/uhepp_vault/static/uhepp-js/
stages:
- test
- jsbuild
- build
- deploy
......@@ -22,11 +23,23 @@ jstest:
- npm i
- npm run-script test
jsbuild:
stage: jsbuild
when: manual
image: node:12
script:
- cd uhepp-js
- npm i
- npm run-script build
artifacts:
expire_in: 1 week
paths:
- uhepp_org/uhepp_vault/static/uhepp-js/main.js*
build:
stage: build
# Build a docker image, tag it with the current git commit and push it to the
# gitlab registry.
when: manual
image:
name: docker/compose:1.24.0
entrypoint: ["/bin/sh", "-c"]
......@@ -37,6 +50,9 @@ build:
- name: docker:18.09.7-dind
alias: docker-in-docker
dependencies:
- jsbuild
tags:
# Use docker-machine (virtualbox) runner to run containers in priviliged
# mode
......
......@@ -27,7 +27,7 @@ module.exports = {
output: {
filename: '[name].js',
library: 'uhepp',
path: path.resolve(__dirname, 'dist')
path: path.resolve(__dirname, '../uhepp_org/uhepp_vault/static/uhepp-js')
},
module: {
rules: [
......
../../../uhepp-js/dist/
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment