update to support more detailed docker publishing

This commit is contained in:
2017-07-27 13:15:39 +02:00
parent fdfb600bea
commit 66bb3a10b7
14 changed files with 111 additions and 47 deletions

View File

@@ -3,6 +3,9 @@ import * as paths from './npmci.paths'
import { GitRepo } from 'smartstring'
import { Dockerfile } from './mod_docker/index'
/**
* a info instance about the git respoitory at cwd :)
*/
export let repo: GitRepo
if (process.env.CI_REPOSITORY_URL) {
repo = new GitRepo(process.env.CI_REPOSITORY_URL)
@@ -31,6 +34,9 @@ export let config = {
project: undefined
}
/**
* the configuration store
*/
export let configStore = async () => {
config.dockerRegistry = dockerRegistry
plugins.smartfile.memory.toFsSync(
@@ -39,6 +45,9 @@ export let configStore = async () => {
)
}
/**
* load the config in case a previous run has stored it
*/
let configLoad = () => {
// internal config to transfer information in between npmci shell calls
try {