Update main.js
This commit is contained in:
parent
806c895f2e
commit
8b55cf07d1
14
main.js
14
main.js
|
@ -76,6 +76,16 @@ async function main() {
|
||||||
await exec.exec("sudo", ["dpkg", "-i", "/tmp/qemu.deb"])
|
await exec.exec("sudo", ["dpkg", "-i", "/tmp/qemu.deb"])
|
||||||
core.endGroup()
|
core.endGroup()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (distribution.endsWith('-backports') {
|
||||||
|
core.startGroup("Enable backports")
|
||||||
|
await exec.exec("docker", [
|
||||||
|
"exec",
|
||||||
|
container,
|
||||||
|
"bash", "-c", "echo 'APT::Get::Assume-Yes \"true\";' > /etc/apt/apt.conf.d/00noconfirm"
|
||||||
|
])
|
||||||
|
core.endGroup()
|
||||||
|
}
|
||||||
|
|
||||||
core.startGroup("Create container")
|
core.startGroup("Create container")
|
||||||
await exec.exec("docker", [
|
await exec.exec("docker", [
|
||||||
|
@ -126,7 +136,7 @@ async function main() {
|
||||||
await exec.exec("docker", [
|
await exec.exec("docker", [
|
||||||
"exec",
|
"exec",
|
||||||
container,
|
container,
|
||||||
"apt-get", "install", "-yq", "-t", imageTag, "dpkg-dev", "debhelper", "devscripts"
|
"apt-get", "install", "-yq", "dpkg-dev", "debhelper", "devscripts"
|
||||||
])
|
])
|
||||||
core.endGroup()
|
core.endGroup()
|
||||||
|
|
||||||
|
@ -135,7 +145,7 @@ async function main() {
|
||||||
await exec.exec("docker", [
|
await exec.exec("docker", [
|
||||||
"exec",
|
"exec",
|
||||||
container,
|
container,
|
||||||
"apt-get", "build-dep", "-yq", "-t", imageTag, sourceDirectory
|
"apt-get", "build-dep", "-yq", sourceDirectory
|
||||||
])
|
])
|
||||||
core.endGroup()
|
core.endGroup()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue