This commit is contained in:
Philipp Kunz 2016-06-05 08:06:32 +02:00
parent 786de4ae18
commit 1e5b56a388
3 changed files with 26 additions and 3 deletions

View File

@ -2,11 +2,34 @@ image: hosttoday/ht-docker-node:lts
stages:
- release
- test
- trigger
before_script:
- npm install -g npmci
testLTS:
stage: test
script:
- npmci test lts
tags:
- docker
testSTABLE:
stage: test
script:
- npmci test stable
tags:
- docker
testLEGACY:
stage: test
script:
- npmci test legacy
tags:
- docker
allow_failure: true
release:
stage: release
script:

File diff suppressed because one or more lines are too long

View File

@ -108,7 +108,7 @@ let dockerFileVersion = function(dockerfileNameArg:string):string{
let versionString:string;
let versionRegex = /Dockerfile_([a-zA-Z0-9\.]*)$/;
let regexResultArray = versionRegex.exec(dockerfileNameArg);
if(regexResultArray.length == 2){
if(regexResultArray && regexResultArray.length == 2){
versionString = regexResultArray[1];
} else {
versionString = "latest";