Compare commits
8 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 6c58864fcf | |||
| 7ea3ac182d | |||
| 8979d26005 | |||
| c8876dac88 | |||
| 9c8a257c2a | |||
| 8b77930ece | |||
| ba672d030f | |||
| 8ad7e016e7 |
2
package-lock.json
generated
2
package-lock.json
generated
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@shipzone/npmci",
|
"name": "@shipzone/npmci",
|
||||||
"version": "3.1.48",
|
"version": "3.1.52",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@shipzone/npmci",
|
"name": "@shipzone/npmci",
|
||||||
"version": "3.1.48",
|
"version": "3.1.52",
|
||||||
"private": false,
|
"private": false,
|
||||||
"description": "node and docker in gitlab ci on steroids",
|
"description": "node and docker in gitlab ci on steroids",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
@@ -9,8 +9,8 @@
|
|||||||
"npmci": "cli.js"
|
"npmci": "cli.js"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "(rm -f config.json) && tstest test/",
|
"test": "tstest test/",
|
||||||
"build": "(rm -f config.json) && tsbuild && (npm run testVersion)",
|
"build": "tsbuild && (npm run testVersion)",
|
||||||
"testVersion": "(cd test/assets/ && node ../../cli.js -v)"
|
"testVersion": "(cd test/assets/ && node ../../cli.js -v)"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
|
|||||||
@@ -269,12 +269,10 @@ export class Dockerfile {
|
|||||||
);
|
);
|
||||||
await bash(`docker tag ${this.buildTag} ${this.pushTag}`);
|
await bash(`docker tag ${this.buildTag} ${this.pushTag}`);
|
||||||
await bash(`docker push ${this.pushTag}`);
|
await bash(`docker push ${this.pushTag}`);
|
||||||
console.log('you can get the digest using this command');
|
const imageDigest = (await bash(
|
||||||
console.log(`docker inspect --format='{{index .RepoDigests 0}}' ${this.pushTag}`);
|
`docker inspect --format="{{index .RepoDigests 0}}" ${this.pushTag}`
|
||||||
const imageDigest = await bash(
|
)).split('@')[1];
|
||||||
`docker inspect --format='{{index .RepoDigests 0}}' ${this.pushTag}`
|
console.log(`The image ${this.pushTag} has digest ${imageDigest}`);
|
||||||
);
|
|
||||||
console.log(imageDigest);
|
|
||||||
await this.npmciDockerManagerRef.npmciRef.cloudlyConnector.announceDockerContainer({
|
await this.npmciDockerManagerRef.npmciRef.cloudlyConnector.announceDockerContainer({
|
||||||
dockerImageUrl: this.pushTag,
|
dockerImageUrl: this.pushTag,
|
||||||
dockerImageVersion: this.npmciDockerManagerRef.npmciRef.npmciConfig.getConfig().projectInfo
|
dockerImageVersion: this.npmciDockerManagerRef.npmciRef.npmciConfig.getConfig().projectInfo
|
||||||
|
|||||||
@@ -50,6 +50,7 @@ export class NpmciGitManager {
|
|||||||
// plugins.smartgit.GitRepo;
|
// plugins.smartgit.GitRepo;
|
||||||
|
|
||||||
// add the mirror
|
// add the mirror
|
||||||
|
console.log(`git remote add mirror https://${githubToken}@github.com/${githubUser}/${githubRepo}.git`);
|
||||||
await bash(
|
await bash(
|
||||||
`git remote add mirror https://${githubToken}@github.com/${githubUser}/${githubRepo}.git`
|
`git remote add mirror https://${githubToken}@github.com/${githubUser}/${githubRepo}.git`
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user