Update livepush to support build arguments

Change-type: minor
Signed-off-by: Cameron Diver <cameron@balena.io>
This commit is contained in:
Cameron Diver 2019-10-22 13:24:00 +01:00
parent 3393e797d0
commit 8ed4f547e0
No known key found for this signature in database
GPG Key ID: 49690ED87032539F
3 changed files with 10 additions and 4 deletions

View File

@ -143,6 +143,12 @@ export class LivepushManager {
this.imageIds[serviceName],
this.docker,
);
const buildVars = buildTask.buildMetadata.getBuildVarsForService(
buildTask.serviceName,
);
if (!_.isEmpty(buildVars)) {
livepush.setBuildArgs(buildVars);
}
this.assignLivepushOutputHandlers(serviceName, livepush);

6
npm-shrinkwrap.json generated
View File

@ -8047,9 +8047,9 @@
"integrity": "sha1-hMinKrWcRyUyFIDJdeZQg0LnCTc="
},
"livepush": {
"version": "2.0.4",
"resolved": "https://registry.npmjs.org/livepush/-/livepush-2.0.4.tgz",
"integrity": "sha512-g4Z5Dyc/hUzUDT/FRxPQ0joBsxpN5+5ePCC5tUqtv6StH2VZ956uATRDybxE2+zTX1YJkIY9uOgZWEJbq1wwtg==",
"version": "2.0.5",
"resolved": "https://registry.npmjs.org/livepush/-/livepush-2.0.5.tgz",
"integrity": "sha512-0oePKk58cQd3yhOLVJdq9yAgQXVrTsKL4IUKk6IxC2s8FMSFTyFVxivZ8iWhrlDKl9moh90KK9N6CnjWMcNH/A==",
"requires": {
"bluebird": "^3.5.1",
"docker-file-parser": "^1.0.4",

View File

@ -195,7 +195,7 @@
"is-root": "^2.1.0",
"js-yaml": "^3.13.1",
"klaw": "^3.0.0",
"livepush": "^2.0.4",
"livepush": "^2.0.5",
"lodash": "^4.17.4",
"minimatch": "^3.0.4",
"mixpanel": "^0.10.1",