debug releases
This commit is contained in:
parent
c27c931c3e
commit
8c49422624
10
main.js
10
main.js
|
@ -4,6 +4,7 @@ const firstline = require("firstline")
|
||||||
const hub = require("docker-hub-utils")
|
const hub = require("docker-hub-utils")
|
||||||
const path = require("path")
|
const path = require("path")
|
||||||
const fs = require("fs")
|
const fs = require("fs")
|
||||||
|
const { debug } = require("console")
|
||||||
|
|
||||||
function getImageTag(imageName, distribution) {
|
function getImageTag(imageName, distribution) {
|
||||||
if (imageName == "debian") {
|
if (imageName == "debian") {
|
||||||
|
@ -135,13 +136,16 @@ async function main() {
|
||||||
|
|
||||||
if (imageTag != "trusty") {
|
if (imageTag != "trusty") {
|
||||||
core.startGroup("Install build dependencies")
|
core.startGroup("Install build dependencies")
|
||||||
|
releases = Array.prototype.concat(targetReleases.map(function (item) {
|
||||||
|
return ["-t", item]
|
||||||
|
}))
|
||||||
|
debug.log(targetReleases)
|
||||||
|
debug.log(releases)
|
||||||
await exec.exec("docker", [
|
await exec.exec("docker", [
|
||||||
"exec",
|
"exec",
|
||||||
container,
|
container,
|
||||||
"apt-get", "build-dep", "-yq", "-t", imageTag
|
"apt-get", "build-dep", "-yq", "-t", imageTag
|
||||||
].concat(Array.prototype.concat(targetReleases.map(function (item) {
|
].concat(releases).concat(sourceDirectory))
|
||||||
return ["-t", item]
|
|
||||||
}))).concat(sourceDirectory))
|
|
||||||
core.endGroup()
|
core.endGroup()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue