summaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-09-23 13:42:42 -0400
committerGitHub <noreply@github.com>2021-09-23 13:42:42 -0400
commit800d594afa160353cc7134ef912bf82f266a122c (patch)
treeff961fc3dd81e67867993bacb96918b77cd0188a /pkg
parentf690f78c6551e99b8e50e5762c72832d600e8355 (diff)
parent2df0685cbee560cde3ddaffae87b036d9882d7ea (diff)
downloadpodman-800d594afa160353cc7134ef912bf82f266a122c.tar.gz
podman-800d594afa160353cc7134ef912bf82f266a122c.tar.bz2
podman-800d594afa160353cc7134ef912bf82f266a122c.zip
Merge pull request #11675 from baude/playkubebuildcontextdir
Set context dir for play kube build
Diffstat (limited to 'pkg')
-rw-r--r--pkg/domain/infra/abi/play.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/pkg/domain/infra/abi/play.go b/pkg/domain/infra/abi/play.go
index e386c17e9..35389ec5e 100644
--- a/pkg/domain/infra/abi/play.go
+++ b/pkg/domain/infra/abi/play.go
@@ -435,6 +435,7 @@ func (ic *ContainerEngine) getImageAndLabelInfo(ctx context.Context, cwd string,
buildOpts.Isolation = buildahDefine.IsolationChroot
buildOpts.CommonBuildOpts = commonOpts
buildOpts.Output = container.Image
+ buildOpts.ContextDirectory = filepath.Dir(buildFile)
if _, _, err := ic.Libpod.Build(ctx, *buildOpts, []string{buildFile}...); err != nil {
return nil, nil, err
}