mirror of
https://code.forgejo.org/forgejo/runner.git
synced 2025-09-25 19:17:01 +00:00
This patch adds a new command-line flag (`--rm`) to automatically stop workflow container(s), just prior to exit. The default behavior is kept, e.g.: the containers continue running at exit. Fixes: #694 Signed-off-by: Joseph Benden <joe@benden.us> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
This commit is contained in:
parent
6dff1f2f88
commit
5e66a1942e
3 changed files with 20 additions and 3 deletions
|
@ -34,6 +34,7 @@ type Input struct {
|
|||
githubInstance string
|
||||
containerCapAdd []string
|
||||
containerCapDrop []string
|
||||
autoRemove bool
|
||||
}
|
||||
|
||||
func (i *Input) resolve(path string) string {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue