1
0
Fork 0
mirror of https://code.forgejo.org/forgejo/runner.git synced 2025-09-25 19:17:01 +00:00

Support container removal at exit. Fixes #694 (#714)

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:
Joseph Benden 2021-06-10 08:09:05 -07:00 committed by GitHub
parent 6dff1f2f88
commit 5e66a1942e
3 changed files with 20 additions and 3 deletions

View file

@ -34,6 +34,7 @@ type Input struct {
githubInstance string
containerCapAdd []string
containerCapDrop []string
autoRemove bool
}
func (i *Input) resolve(path string) string {