fix(core): update
This commit is contained in:
parent
23886c1ed3
commit
713df1867a
@ -37,18 +37,6 @@ snyk:
|
|||||||
# ====================
|
# ====================
|
||||||
# test stage
|
# test stage
|
||||||
# ====================
|
# ====================
|
||||||
testLEGACY:
|
|
||||||
stage: test
|
|
||||||
script:
|
|
||||||
- npmci npm prepare
|
|
||||||
- npmci node install legacy
|
|
||||||
- npmci npm install
|
|
||||||
- npmci npm test
|
|
||||||
coverage: /\d+.?\d+?\%\s*coverage/
|
|
||||||
tags:
|
|
||||||
- docker
|
|
||||||
- notpriv
|
|
||||||
allow_failure: true
|
|
||||||
|
|
||||||
testLTS:
|
testLTS:
|
||||||
stage: test
|
stage: test
|
||||||
|
@ -42,7 +42,9 @@ export class Dockerfile {
|
|||||||
public async build() {
|
public async build() {
|
||||||
logger.log('info', 'now building Dockerfile for ' + this.cleanTag);
|
logger.log('info', 'now building Dockerfile for ' + this.cleanTag);
|
||||||
const buildArgsString = await helpers.getDockerBuildArgs();
|
const buildArgsString = await helpers.getDockerBuildArgs();
|
||||||
const buildCommand = `docker build -t ${this.buildTag} -f ${this.filePath} ${buildArgsString} .`;
|
const buildCommand = `docker build -t ${this.buildTag} -f ${
|
||||||
|
this.filePath
|
||||||
|
} ${buildArgsString} .`;
|
||||||
await bash(buildCommand);
|
await bash(buildCommand);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -102,7 +104,9 @@ export class Dockerfile {
|
|||||||
* gets the id of a Dockerfile
|
* gets the id of a Dockerfile
|
||||||
*/
|
*/
|
||||||
public async getId() {
|
public async getId() {
|
||||||
const containerId = await bash('docker inspect --type=image --format="{{.Id}}" ' + this.buildTag);
|
const containerId = await bash(
|
||||||
|
'docker inspect --type=image --format="{{.Id}}" ' + this.buildTag
|
||||||
|
);
|
||||||
return containerId;
|
return containerId;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -178,7 +178,7 @@ export let cleanTagsArrayFunction = (
|
|||||||
trackingArrayArg: Dockerfile[]
|
trackingArrayArg: Dockerfile[]
|
||||||
): string[] => {
|
): string[] => {
|
||||||
const cleanTagsArray: string[] = [];
|
const cleanTagsArray: string[] = [];
|
||||||
dockerfileArrayArg.forEach((dockerfileArg) => {
|
dockerfileArrayArg.forEach(dockerfileArg => {
|
||||||
if (trackingArrayArg.indexOf(dockerfileArg) === -1) {
|
if (trackingArrayArg.indexOf(dockerfileArg) === -1) {
|
||||||
cleanTagsArray.push(dockerfileArg.cleanTag);
|
cleanTagsArray.push(dockerfileArg.cleanTag);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user