main: mount workspace directory and mv instead of cp
This commit is contained in:
parent
9308795b8b
commit
2d1645957a
10
main.js
10
main.js
|
@ -43,7 +43,7 @@ async function main() {
|
||||||
await exec.exec("docker", [
|
await exec.exec("docker", [
|
||||||
"create",
|
"create",
|
||||||
"--name", container,
|
"--name", container,
|
||||||
"--volume", sourceDirectory + ":" + sourceDirectory,
|
"--volume", workspaceDirectory + ":" + workspaceDirectory,
|
||||||
"--workdir", sourceDirectory,
|
"--workdir", sourceDirectory,
|
||||||
"--tty",
|
"--tty",
|
||||||
image,
|
image,
|
||||||
|
@ -66,9 +66,9 @@ async function main() {
|
||||||
"tar",
|
"tar",
|
||||||
"--exclude-vcs",
|
"--exclude-vcs",
|
||||||
"--exclude", "./debian",
|
"--exclude", "./debian",
|
||||||
"--transform", `s/^\./${package}-${version}/`,
|
"--transform", `s/^${sourceDirectory}/${package}-${version}/`,
|
||||||
"-cvzf", `${buildDirectory}/${package}_${version}.orig.tar.gz`,
|
"-cvzf", `${buildDirectory}/${package}_${version}.orig.tar.gz`,
|
||||||
"./"
|
sourceDirectory
|
||||||
])
|
])
|
||||||
core.endGroup()
|
core.endGroup()
|
||||||
}
|
}
|
||||||
|
@ -105,7 +105,7 @@ async function main() {
|
||||||
])
|
])
|
||||||
core.endGroup()
|
core.endGroup()
|
||||||
|
|
||||||
core.startGroup("Copy artifacts")
|
core.startGroup("Move artifacts")
|
||||||
await exec.exec("docker", [
|
await exec.exec("docker", [
|
||||||
"exec",
|
"exec",
|
||||||
container,
|
container,
|
||||||
|
@ -115,7 +115,7 @@ async function main() {
|
||||||
"-name", `${package}_${version}*.*`,
|
"-name", `${package}_${version}*.*`,
|
||||||
"-type", "f",
|
"-type", "f",
|
||||||
"-print",
|
"-print",
|
||||||
"-exec", "cp", "{}", artifactsDirectory, ";"
|
"-exec", "mv", "{}", artifactsDirectory, ";"
|
||||||
])
|
])
|
||||||
core.endGroup()
|
core.endGroup()
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|
Loading…
Reference in a new issue