main: prepare environment

Non interactive dpkg and apt
This commit is contained in:
Dawid Dziurla 2020-12-26 17:34:57 +01:00 committed by GitHub
parent c84039fd8e
commit 147656c479
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

18
main.js
View file

@ -88,6 +88,24 @@ async function main() {
]) ])
core.endGroup() 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) { if (revision) {
core.startGroup("Create tarball") core.startGroup("Create tarball")
await exec.exec("docker", [ await exec.exec("docker", [