Compare commits

..

6 Commits

Author SHA1 Message Date
95c1145bf5 3.1.55 2019-09-01 13:49:12 +02:00
ea04a1b788 fix(core): update 2019-09-01 13:49:11 +02:00
3bc2499d09 3.1.54 2019-09-01 13:46:03 +02:00
1f5967ac45 fix(core): update 2019-09-01 13:46:03 +02:00
fd952f086b 3.1.53 2019-09-01 13:45:19 +02:00
79500cb2c2 fix(core): update 2019-09-01 13:45:18 +02:00
4 changed files with 4 additions and 4 deletions

View File

@@ -18,6 +18,7 @@ stages:
mirror:
stage: security
script:
- npm install -g @shipzone/npmci
- npmci git mirror
tags:
- docker

2
package-lock.json generated
View File

@@ -1,6 +1,6 @@
{
"name": "@shipzone/npmci",
"version": "3.1.52",
"version": "3.1.55",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

View File

@@ -1,6 +1,6 @@
{
"name": "@shipzone/npmci",
"version": "3.1.52",
"version": "3.1.55",
"private": false,
"description": "node and docker in gitlab ci on steroids",
"main": "dist/index.js",

View File

@@ -32,7 +32,7 @@ export class NpmciGitManager {
public mirror = async () => {
const githubToken = process.env.NPMCI_GIT_GITHUBTOKEN;
const githubUser = process.env.NPMCI_GIT_GITHUBGROUP || this.npmciRef.npmciEnv.repo.user;
const githubRepo = process.env.NPMCI_GIT_GITHUB || this.npmciRef.npmciEnv.repo;
const githubRepo = process.env.NPMCI_GIT_GITHUB || this.npmciRef.npmciEnv.repo.repo;
if (
this.npmciRef.npmciConfig.getConfig().projectInfo.npm.packageJson.private === true ||
this.npmciRef.npmciConfig.getConfig().npmAccessLevel === 'private'
@@ -50,7 +50,6 @@ export class NpmciGitManager {
// plugins.smartgit.GitRepo;
// add the mirror
console.log(`git remote add mirror https://${githubToken}@github.com/${githubUser}/${githubRepo}.git`);
await bash(
`git remote add mirror https://${githubToken}@github.com/${githubUser}/${githubRepo}.git`
);