Added build for testfeld
@@ -9,6 +9,7 @@ stages:
build:
image: beevelop/nodejs-python
stage: build
+ only: dev
script:
- npm install --unsafe-perm
- npm run dev-build
@@ -25,8 +26,38 @@ build:
nginx:
image: docker:17.06.0-ce
stage: docker
+ only: dev
script:
- ls
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $REGISTRY_HOST
- docker build --pull -t $IMAGE_NAME .
- docker push $IMAGE_NAME
+
+build_testfeld:
+ image: beevelop/nodejs-python
+ stage: build
+ only: testfeld
+ script:
+ - npm install --unsafe-perm
+ - npm run dev-build
+ artifacts:
+ paths:
+ - img/**
+ - css/**
+ - index.html
+ - bundle.js
+ - app/**/*.html
+ - templates/**/*.html
+ expire_in: 1 hour
+
+nginx_testfeld:
+ image: docker:17.06.0-ce
+ stage: docker
+ only: testfeld
+ script:
+ - ls
+ - docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $REGISTRY_HOST
+ - docker build --pull -t $IMAGE_NAME/testfeld .
+ - docker push $IMAGE_NAME/testfeld
+
+
