From 8ed4f547e0b9d8c969ac7eeec2a6c3fa8cbfbabf Mon Sep 17 00:00:00 2001 From: Cameron Diver Date: Tue, 22 Oct 2019 13:24:00 +0100 Subject: [PATCH] Update livepush to support build arguments Change-type: minor Signed-off-by: Cameron Diver --- lib/utils/device/live.ts | 6 ++++++ npm-shrinkwrap.json | 6 +++--- package.json | 2 +- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/lib/utils/device/live.ts b/lib/utils/device/live.ts index 8e476959..2145cb7c 100644 --- a/lib/utils/device/live.ts +++ b/lib/utils/device/live.ts @@ -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); diff --git a/npm-shrinkwrap.json b/npm-shrinkwrap.json index 40000116..7e12c05e 100644 --- a/npm-shrinkwrap.json +++ b/npm-shrinkwrap.json @@ -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", diff --git a/package.json b/package.json index 3c50cb36..d8d3cfbb 100644 --- a/package.json +++ b/package.json @@ -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",