forked from waja/action-debian-package
Compare commits
1 commit
405488bcef
...
7bef946a4e
Author | SHA1 | Date | |
---|---|---|---|
|
7bef946a4e |
17
main.js
17
main.js
|
@ -68,8 +68,8 @@ async function main() {
|
|||
const match = changelog.match(regex)
|
||||
const { pkg, epoch, version, revision, packageDistribution } = match.groups
|
||||
const distribution = osDistribution ? osDistribution : packageDistribution
|
||||
const imageName = await getImageName(distribution)
|
||||
const imageTag = await getImageTag(imageName, distribution)
|
||||
const imageName = "ubuntu"
|
||||
const imageTag = "jammy"
|
||||
const container = pkg
|
||||
const image = imageName + ":" + imageTag
|
||||
|
||||
|
@ -113,7 +113,7 @@ async function main() {
|
|||
"--platform", `linux/${cpuArchitecture}`,
|
||||
"--name", container,
|
||||
"--volume", workspaceDirectory + ":" + workspaceDirectory,
|
||||
"--workdir", sourceDirectory,
|
||||
"--workdir", workspaceDirectory,
|
||||
"--env", "DEBIAN_FRONTEND=noninteractive",
|
||||
"--env", "DPKG_COLORS=always",
|
||||
"--env", "FORCE_UNSAFE_CONFIGURE=1",
|
||||
|
@ -131,6 +131,14 @@ async function main() {
|
|||
])
|
||||
core.endGroup()
|
||||
|
||||
core.startGroup("Check workspaceDirectory")
|
||||
await exec.exec("docker", [
|
||||
"exec",
|
||||
container,
|
||||
"ls", "-la", workspaceDirectory
|
||||
])
|
||||
core.endGroup()
|
||||
|
||||
core.startGroup("Check sourceDirectory")
|
||||
await exec.exec("docker", [
|
||||
"exec",
|
||||
|
@ -145,7 +153,7 @@ async function main() {
|
|||
container
|
||||
])
|
||||
core.endGroup()
|
||||
|
||||
/*
|
||||
core.startGroup("Prepare environment")
|
||||
await exec.exec("docker", [
|
||||
"exec",
|
||||
|
@ -284,6 +292,7 @@ async function main() {
|
|||
"-exec", "mv", "{}", artifactsDirectory, ";"
|
||||
])
|
||||
core.endGroup()
|
||||
*/
|
||||
} catch (error) {
|
||||
core.setFailed(error.message)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue