From 147656c479240671ef9e1182e7c35d017f70acc4 Mon Sep 17 00:00:00 2001 From: Dawid Dziurla Date: Sat, 26 Dec 2020 17:34:57 +0100 Subject: [PATCH] main: prepare environment Non interactive dpkg and apt --- main.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/main.js b/main.js index 4bc4f0d..17d0b9f 100644 --- a/main.js +++ b/main.js @@ -88,6 +88,24 @@ async function main() { ]) core.endGroup() + core.startGroup("Prepare environment") + await exec.exec("docker", [ + "exec", + container, + "bash -c 'rm /etc/apt/apt.conf.d/*'" + ]) + await exec.exec("docker", [ + "exec", + container, + "bash -c 'echo APT::Get::Assume-Yes \"true\"\; > /etc/apt/apt.conf.d/00noconfirm'" + ]) + await exec.exec("docker", [ + "exec", + container, + "bash -c 'echo debconf debconf/frontend select Noninteractive | debconf-set-selections'" + ]) + core.endGroup() + if (revision) { core.startGroup("Create tarball") await exec.exec("docker", [