build: --build-arg on build, not up

This commit is contained in:
Sérgio Ramos 2017-06-01 12:35:55 +01:00
parent 539e1ea35e
commit a2967210a3

View File

@ -99,7 +99,9 @@ const build = async () => {
flatten(tags.map(name => ['-t', `${NAMESPACE}/${name}`])), flatten(tags.map(name => ['-t', `${NAMESPACE}/${name}`])),
'-f', '-f',
dockerfile, dockerfile,
'.' '.',
'--build-arg',
`CIRCLE_BRANCH=${CIRCLE_BRANCH}`
]), ]),
{ {
stdio: 'inherit' stdio: 'inherit'