diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d3a6500b47265c3ffab51fa1338303fba3139e20..adf78f774a8037935087358df3179bcaf27d4277 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,6 +1,7 @@ stages: - test + - jsbuild - build - deploy @@ -13,8 +14,23 @@ unittest: - python manage.py migrate - python manage.py test -build: +jsbuild: + stage: jsbuild when: manual + image: node:12 + allow_failure: false + + script: + - cd js + - npm i + - npm run-script build + + artifacts: + expire_in: 1 week + paths: + - app/keys_home/static/react/* + +build: stage: build allow_failure: false image: @@ -32,6 +48,9 @@ build: # mode - dind + dependencies: + - jsbuild + variables: # Tell docker client where it can find the daemon DOCKER_HOST: tcp://docker-in-docker:2375/