image: registry.gitlab.com/openstapps/app stages: - setup - build - test setup: image: registry.gitlab.com/openstapps/projectmanagement/builder stage: setup only: - schedules variables: DOCKER_DRIVER: overlay2 image: registry.gitlab.com/openstapps/projectmanagement/builder services: - docker:dind script: - docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN registry.gitlab.com - docker build -t registry.gitlab.com/openstapps/app . - docker push registry.gitlab.com/openstapps/app tags: - docker build: stage: build script: - npm install - npm run build artifacts: paths: - node_modules - www tags: - docker unit: stage: test script: - npm run test -- --watch=false --no-progress --code-coverage artifacts: paths: - coverage tags: - docker e2e: stage: test script: - npm run e2e tags: - docker audit: stage: test script: - npm audit tags: - docker