fix(ci): update .gitlab.yml to latest gitzone version
This commit is contained in:
parent
94c5567b75
commit
0e337a3574
@ -10,9 +10,11 @@ stages:
|
|||||||
- security
|
- security
|
||||||
- test
|
- test
|
||||||
- release
|
- release
|
||||||
- trigger
|
- metadata
|
||||||
- pages
|
|
||||||
|
|
||||||
|
# ====================
|
||||||
|
# security stage
|
||||||
|
# ====================
|
||||||
mirror:
|
mirror:
|
||||||
stage: security
|
stage: security
|
||||||
script:
|
script:
|
||||||
@ -31,25 +33,9 @@ snyk:
|
|||||||
- docker
|
- docker
|
||||||
- notpriv
|
- notpriv
|
||||||
|
|
||||||
codequality:
|
# ====================
|
||||||
stage: security
|
# test stage
|
||||||
image: docker:stable
|
# ====================
|
||||||
allow_failure: true
|
|
||||||
services:
|
|
||||||
- docker:stable-dind
|
|
||||||
script:
|
|
||||||
- export SP_VERSION=$(echo "$CI_SERVER_VERSION" | sed 's/^\([0-9]*\)\.\([0-9]*\).*/\1-\2-stable/')
|
|
||||||
- docker run
|
|
||||||
--env SOURCE_CODE="$PWD"
|
|
||||||
--volume "$PWD":/code
|
|
||||||
--volume /var/run/docker.sock:/var/run/docker.sock
|
|
||||||
"registry.gitlab.com/gitlab-org/security-products/codequality:$SP_VERSION" /code
|
|
||||||
artifacts:
|
|
||||||
paths: [codeclimate.json]
|
|
||||||
tags:
|
|
||||||
- docker
|
|
||||||
- priv
|
|
||||||
|
|
||||||
testLEGACY:
|
testLEGACY:
|
||||||
stage: test
|
stage: test
|
||||||
script:
|
script:
|
||||||
@ -88,7 +74,6 @@ release:
|
|||||||
stage: release
|
stage: release
|
||||||
script:
|
script:
|
||||||
- npmci node install stable
|
- npmci node install stable
|
||||||
- npmci npm prepare
|
|
||||||
- npmci npm publish
|
- npmci npm publish
|
||||||
only:
|
only:
|
||||||
- tags
|
- tags
|
||||||
@ -96,8 +81,30 @@ release:
|
|||||||
- docker
|
- docker
|
||||||
- notpriv
|
- notpriv
|
||||||
|
|
||||||
|
# ====================
|
||||||
|
# metadata stage
|
||||||
|
# ====================
|
||||||
|
codequality:
|
||||||
|
stage: metadata
|
||||||
|
image: docker:stable
|
||||||
|
allow_failure: true
|
||||||
|
services:
|
||||||
|
- docker:stable-dind
|
||||||
|
script:
|
||||||
|
- export SP_VERSION=$(echo "$CI_SERVER_VERSION" | sed 's/^\([0-9]*\)\.\([0-9]*\).*/\1-\2-stable/')
|
||||||
|
- docker run
|
||||||
|
--env SOURCE_CODE="$PWD"
|
||||||
|
--volume "$PWD":/code
|
||||||
|
--volume /var/run/docker.sock:/var/run/docker.sock
|
||||||
|
"registry.gitlab.com/gitlab-org/security-products/codequality:$SP_VERSION" /code
|
||||||
|
artifacts:
|
||||||
|
paths: [codeclimate.json]
|
||||||
|
tags:
|
||||||
|
- docker
|
||||||
|
- priv
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
stage: trigger
|
stage: metadata
|
||||||
script:
|
script:
|
||||||
- npmci trigger
|
- npmci trigger
|
||||||
only:
|
only:
|
||||||
@ -108,7 +115,7 @@ trigger:
|
|||||||
|
|
||||||
pages:
|
pages:
|
||||||
image: hosttoday/ht-docker-node:npmci
|
image: hosttoday/ht-docker-node:npmci
|
||||||
stage: pages
|
stage: metadata
|
||||||
script:
|
script:
|
||||||
- npmci command yarn global add npmpage
|
- npmci command yarn global add npmpage
|
||||||
- npmci command npmpage
|
- npmci command npmpage
|
||||||
|
@ -15,100 +15,109 @@ const npmciSmartcli = new plugins.smartcli.Smartcli();
|
|||||||
npmciSmartcli.addVersion(npmciInfo.version);
|
npmciSmartcli.addVersion(npmciInfo.version);
|
||||||
|
|
||||||
// clean
|
// clean
|
||||||
npmciSmartcli
|
npmciSmartcli.addCommand('clean').subscribe(
|
||||||
.addCommand('clean')
|
async argv => {
|
||||||
.subscribe(async argv => {
|
|
||||||
let modClean = await npmciMods.modClean.load();
|
let modClean = await npmciMods.modClean.load();
|
||||||
await modClean.clean();
|
await modClean.clean();
|
||||||
}, err => {
|
},
|
||||||
|
err => {
|
||||||
console.log(err);
|
console.log(err);
|
||||||
process.exit(1);
|
process.exit(1);
|
||||||
});
|
}
|
||||||
|
);
|
||||||
|
|
||||||
// cloudflare
|
// cloudflare
|
||||||
npmciSmartcli
|
npmciSmartcli.addCommand('cloudflare').subscribe(
|
||||||
.addCommand('cloudflare')
|
async argvArg => {
|
||||||
.subscribe(async argvArg => {
|
|
||||||
let modPurge = await npmciMods.modCloudflare.load();
|
let modPurge = await npmciMods.modCloudflare.load();
|
||||||
await modPurge.handleCli(argvArg);
|
await modPurge.handleCli(argvArg);
|
||||||
}, err => {
|
},
|
||||||
|
err => {
|
||||||
console.log(err);
|
console.log(err);
|
||||||
});
|
}
|
||||||
|
);
|
||||||
|
|
||||||
// command
|
// command
|
||||||
npmciSmartcli
|
npmciSmartcli.addCommand('command').subscribe(
|
||||||
.addCommand('command')
|
async argv => {
|
||||||
.subscribe(async argv => {
|
|
||||||
let modCommand = await npmciMods.modCommand.load();
|
let modCommand = await npmciMods.modCommand.load();
|
||||||
await modCommand.command();
|
await modCommand.command();
|
||||||
}, err => {
|
},
|
||||||
|
err => {
|
||||||
console.log(err);
|
console.log(err);
|
||||||
process.exit(1);
|
process.exit(1);
|
||||||
});
|
}
|
||||||
|
);
|
||||||
|
|
||||||
// command
|
// command
|
||||||
npmciSmartcli
|
npmciSmartcli.addCommand('git').subscribe(
|
||||||
.addCommand('git')
|
async argvArg => {
|
||||||
.subscribe(async argvArg => {
|
|
||||||
let modGit = await npmciMods.modGit.load();
|
let modGit = await npmciMods.modGit.load();
|
||||||
await modGit.handleCli(argvArg);
|
await modGit.handleCli(argvArg);
|
||||||
}, err => {
|
},
|
||||||
|
err => {
|
||||||
console.log(err);
|
console.log(err);
|
||||||
process.exit(1);
|
process.exit(1);
|
||||||
});
|
}
|
||||||
|
);
|
||||||
|
|
||||||
// build
|
// build
|
||||||
npmciSmartcli
|
npmciSmartcli.addCommand('docker').subscribe(
|
||||||
.addCommand('docker')
|
async argvArg => {
|
||||||
.subscribe(async argvArg => {
|
|
||||||
let modDocker = await npmciMods.modDocker.load();
|
let modDocker = await npmciMods.modDocker.load();
|
||||||
await modDocker.handleCli(argvArg);
|
await modDocker.handleCli(argvArg);
|
||||||
}, err => {
|
},
|
||||||
|
err => {
|
||||||
console.log(err);
|
console.log(err);
|
||||||
process.exit(1);
|
process.exit(1);
|
||||||
});
|
}
|
||||||
|
);
|
||||||
|
|
||||||
// node
|
// node
|
||||||
npmciSmartcli
|
npmciSmartcli.addCommand('node').subscribe(
|
||||||
.addCommand('node')
|
async argvArg => {
|
||||||
.subscribe(async argvArg => {
|
|
||||||
let modNode = await npmciMods.modNode.load();
|
let modNode = await npmciMods.modNode.load();
|
||||||
await modNode.handleCli(argvArg);
|
await modNode.handleCli(argvArg);
|
||||||
}, err => {
|
},
|
||||||
|
err => {
|
||||||
console.log(err);
|
console.log(err);
|
||||||
process.exit(1);
|
process.exit(1);
|
||||||
});
|
}
|
||||||
|
);
|
||||||
|
|
||||||
// npm
|
// npm
|
||||||
npmciSmartcli
|
npmciSmartcli.addCommand('npm').subscribe(
|
||||||
.addCommand('npm')
|
async argvArg => {
|
||||||
.subscribe(async argvArg => {
|
|
||||||
let modNpm = await npmciMods.modNpm.load();
|
let modNpm = await npmciMods.modNpm.load();
|
||||||
await modNpm.handleCli(argvArg);
|
await modNpm.handleCli(argvArg);
|
||||||
}, err => {
|
},
|
||||||
|
err => {
|
||||||
console.log(err);
|
console.log(err);
|
||||||
});
|
}
|
||||||
|
);
|
||||||
|
|
||||||
// trigger
|
// trigger
|
||||||
npmciSmartcli
|
npmciSmartcli.addCommand('ssh').subscribe(
|
||||||
.addCommand('ssh')
|
async argvArg => {
|
||||||
.subscribe(async argvArg => {
|
|
||||||
let modSsh = await npmciMods.modSsh.load();
|
let modSsh = await npmciMods.modSsh.load();
|
||||||
await modSsh.handleCli(argvArg);
|
await modSsh.handleCli(argvArg);
|
||||||
}, err => {
|
},
|
||||||
|
err => {
|
||||||
console.log(err);
|
console.log(err);
|
||||||
process.exit(1);
|
process.exit(1);
|
||||||
});
|
}
|
||||||
|
);
|
||||||
|
|
||||||
// trigger
|
// trigger
|
||||||
npmciSmartcli
|
npmciSmartcli.addCommand('trigger').subscribe(
|
||||||
.addCommand('trigger')
|
async argv => {
|
||||||
.subscribe(async argv => {
|
|
||||||
let modTrigger = await npmciMods.modTrigger.load();
|
let modTrigger = await npmciMods.modTrigger.load();
|
||||||
await modTrigger.trigger();
|
await modTrigger.trigger();
|
||||||
}, err => {
|
},
|
||||||
|
err => {
|
||||||
console.log(err);
|
console.log(err);
|
||||||
process.exit(1);
|
process.exit(1);
|
||||||
});
|
}
|
||||||
|
);
|
||||||
|
|
||||||
npmciSmartcli.startParse();
|
npmciSmartcli.startParse();
|
||||||
|
Loading…
Reference in New Issue
Block a user