1
0

feat!: prepend/append commands to dockerfile

BREAKING CHANGE: Command definition in the configuration has been changed

from

[[docker.commands]]
distro = { id = "Ubuntu" }
command = "echo runs before the base layer"

to

[[docker.commands.prepend]]
distro = { id = "Ubuntu" }
command = "echo runs before the base layer"
This commit is contained in:
2024-10-06 16:11:29 +00:00
parent cba1abc7f4
commit a7ecc354a9
2 changed files with 32 additions and 7 deletions

View File

@ -35,9 +35,12 @@ type OutOfTree struct {
Timeout artifact.Duration
Registry string
// Commands that will be executed before
// the base layer of Dockerfile
Commands []distro.Command
// Commands that are executed before (prepend) and after (append) the
// base layer of the Dockerfile.
Commands struct {
Prepend []distro.Command
Append []distro.Command
}
}
}