fix
This commit is contained in:
parent
f544aef054
commit
62ee8a26a4
@ -1,35 +1,12 @@
|
|||||||
image: hosttoday/ht-docker-node:lts
|
image: hosttoday/ht-docker-node:lts
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- test
|
|
||||||
- release
|
- release
|
||||||
- trigger
|
- trigger
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- npm install -g npmci
|
- 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:
|
release:
|
||||||
stage: release
|
stage: release
|
||||||
script:
|
script:
|
||||||
|
4
dist/npmci.build.docker.js
vendored
4
dist/npmci.build.docker.js
vendored
File diff suppressed because one or more lines are too long
@ -108,7 +108,7 @@ let dockerFileVersion = function(dockerfileNameArg:string):string{
|
|||||||
let versionString:string;
|
let versionString:string;
|
||||||
let versionRegex = /Dockerfile_([a-zA-Z0-9\.]*)$/;
|
let versionRegex = /Dockerfile_([a-zA-Z0-9\.]*)$/;
|
||||||
let regexResultArray = versionRegex.exec(dockerfileNameArg);
|
let regexResultArray = versionRegex.exec(dockerfileNameArg);
|
||||||
if(regexResultArray.length = 2){
|
if(regexResultArray.length == 2){
|
||||||
versionString = regexResultArray[1];
|
versionString = regexResultArray[1];
|
||||||
} else {
|
} else {
|
||||||
versionString = "latest";
|
versionString = "latest";
|
||||||
|
Loading…
Reference in New Issue
Block a user