From 8c494226241f221bf7e931e439dd1eb2bd7f112f Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Fri, 17 Jun 2022 12:58:50 +0200 Subject: [PATCH] debug releases --- main.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/main.js b/main.js index 99bae2e..3ff5eb8 100644 --- a/main.js +++ b/main.js @@ -4,6 +4,7 @@ const firstline = require("firstline") const hub = require("docker-hub-utils") const path = require("path") const fs = require("fs") +const { debug } = require("console") function getImageTag(imageName, distribution) { if (imageName == "debian") { @@ -135,13 +136,16 @@ async function main() { if (imageTag != "trusty") { 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", [ "exec", container, "apt-get", "build-dep", "-yq", "-t", imageTag - ].concat(Array.prototype.concat(targetReleases.map(function (item) { - return ["-t", item] - }))).concat(sourceDirectory)) + ].concat(releases).concat(sourceDirectory)) core.endGroup() }