feat: add proxy

This commit is contained in:
Anselm Stordeur
2019-01-16 19:54:30 +01:00
committed by Rainer Killinger
commit fbe1a65cd1
23 changed files with 3656 additions and 0 deletions

52
.gitlab-ci.yml Normal file
View File

@@ -0,0 +1,52 @@
image: registry.gitlab.com/openstapps/projectmanagement/node:latest
cache:
key: ${CI_COMMIT_REF_SLUG}
paths:
- lib
- node_modules
before_script:
- npm install
stages:
- build
- test
- publish
build:
stage: build
script:
- npm run build
artifacts:
untracked: true
paths:
- node_modules/
only:
- /(^v[0-9]+\.[0-9]+\.[0-9]+$|^master$|^develop$)/
tags:
- docker
test:
stage: test
dependencies:
- build
script:
- npm test
tags:
- docker
publish:
stage: publish
variables:
DOCKER_DRIVER: overlay2
services:
- docker:dind
script:
- docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN $CI_REGISTRY
- docker build -t $CI_REGISTRY_IMAGE/$REGISTRY_BRANCH/$CI_COMMIT_REF_NAME:latest .
- docker push $CI_REGISTRY_IMAGE/$REGISTRY_BRANCH/$CI_COMMIT_REF_NAME:latest
only:
- /(^v[0-9]+\.[0-9]+\.[0-9]+$|^master$|^develop$)/
tags:
- docker