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 <[email protected]>

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
This commit is contained in:
Joseph Bendenandmergify[bot] authored and GitHub committed 2021-06-10 15:09:05 +00:00
1 parent 2261204c65
commit 003c995b36
3 files changed
+20 -3

No files matched your search

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