forked from waja/action-debian-package
main: prepare environment
Non interactive dpkg and apt
This commit is contained in:
parent
c84039fd8e
commit
147656c479
18
main.js
18
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", [
|
||||
|
|
Loading…
Reference in a new issue