From 7879726159a83d0d2ac7ed2dcf068e518e838e36 Mon Sep 17 00:00:00 2001 From: ChristopherHX Date: Wed, 11 May 2022 21:22:35 +0200 Subject: [PATCH] Remove the correct Volume (#1148) I have a lot of stale act-....-env volumes Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> --- pkg/runner/run_context.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/runner/run_context.go b/pkg/runner/run_context.go index 5b4e126..66c0d10 100644 --- a/pkg/runner/run_context.go +++ b/pkg/runner/run_context.go @@ -217,7 +217,7 @@ func (rc *RunContext) stopJobContainer() common.Executor { return func(ctx context.Context) error { if rc.JobContainer != nil && !rc.Config.ReuseContainers { return rc.JobContainer.Remove(). - Then(container.NewDockerVolumeRemoveExecutor(rc.jobContainerName(), false))(ctx) + Then(container.NewDockerVolumeRemoveExecutor(rc.jobContainerName()+"-env", false))(ctx) } return nil }