Compare commits
2 commits
7d43afb7a9
...
8345de0de6
Author | SHA1 | Date | |
---|---|---|---|
Jan Wagner | 8345de0de6 | ||
Jan Wagner | 305eb46797 |
22
main.js
22
main.js
|
@ -95,6 +95,10 @@ async function main() {
|
||||||
console.log(details)
|
console.log(details)
|
||||||
core.endGroup()
|
core.endGroup()
|
||||||
|
|
||||||
|
core.startGroup("Check sourceDirectory")
|
||||||
|
await exec.exec("ls", ["-la", sourceDirectory])
|
||||||
|
core.endGroup()
|
||||||
|
|
||||||
if (cpuArchitecture != "amd64") {
|
if (cpuArchitecture != "amd64") {
|
||||||
core.startGroup("Install QEMU")
|
core.startGroup("Install QEMU")
|
||||||
// Need newer QEMU to avoid errors
|
// Need newer QEMU to avoid errors
|
||||||
|
@ -127,6 +131,13 @@ async function main() {
|
||||||
])
|
])
|
||||||
core.endGroup()
|
core.endGroup()
|
||||||
|
|
||||||
|
core.startGroup("Show container ispect")
|
||||||
|
await exec.exec("docker", [
|
||||||
|
"inspect",
|
||||||
|
container
|
||||||
|
])
|
||||||
|
core.endGroup()
|
||||||
|
|
||||||
core.startGroup("Prepare environment")
|
core.startGroup("Prepare environment")
|
||||||
await exec.exec("docker", [
|
await exec.exec("docker", [
|
||||||
"exec",
|
"exec",
|
||||||
|
@ -183,13 +194,22 @@ async function main() {
|
||||||
])
|
])
|
||||||
core.endGroup()
|
core.endGroup()
|
||||||
|
|
||||||
|
core.startGroup("Check sourceDirectory")
|
||||||
|
await exec.exec("docker", [
|
||||||
|
"exec",
|
||||||
|
container,
|
||||||
|
"ls", "-la", sourceDirectory
|
||||||
|
])
|
||||||
|
core.endGroup()
|
||||||
|
|
||||||
if (imageTag != "trusty") {
|
if (imageTag != "trusty") {
|
||||||
core.startGroup("Install build dependencies")
|
core.startGroup("Install build dependencies")
|
||||||
await exec.exec("docker", [
|
await exec.exec("docker", [
|
||||||
"exec",
|
"exec",
|
||||||
container,
|
container,
|
||||||
"bash", "-c",
|
"bash", "-c",
|
||||||
`apt-get build-dep -yq -t '${imageTag}' '${sourceDirectory}' || apt-get build-dep -yq '${sourceDirectory}'`
|
// `apt-get build-dep -yq -t '${imageTag}' '${sourceDirectory}' || apt-get build-dep -yq '${sourceDirectory}'`
|
||||||
|
`cd '${sourceDirectory}' && apt-get build-dep -yq -t '${imageTag}' . || apt-get build-dep -yq .`
|
||||||
])
|
])
|
||||||
core.endGroup()
|
core.endGroup()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue