Container strategies swallows args
This commit is contained in:
parent
2e3b9d8e5b
commit
ba87dea428
@ -5,7 +5,7 @@ from .script import Script
|
|||||||
class Container(Script):
|
class Container(Script):
|
||||||
async def call(self, *args, **kwargs):
|
async def call(self, *args, **kwargs):
|
||||||
if not args or 'build' in args:
|
if not args or 'build' in args:
|
||||||
await self.kwargs['build'](*args, **kwargs)
|
await self.kwargs['build'](**kwargs)
|
||||||
self.image = self.kwargs['build'].image
|
self.image = self.kwargs['build'].image
|
||||||
|
|
||||||
if not args or 'test' in args:
|
if not args or 'test' in args:
|
||||||
@ -15,7 +15,7 @@ class Container(Script):
|
|||||||
image=self.image,
|
image=self.image,
|
||||||
mount={'.': '/app'},
|
mount={'.': '/app'},
|
||||||
workdir='/app',
|
workdir='/app',
|
||||||
)(*args, **kwargs)
|
)(**kwargs)
|
||||||
|
|
||||||
if not args or 'push' in args:
|
if not args or 'push' in args:
|
||||||
await self.kwargs['build'](method='push', **kwargs)
|
await self.kwargs['build'](method='push', **kwargs)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user