From d3d7271f87b01c9a51e3f72c2c0091cc6435ad11 Mon Sep 17 00:00:00 2001 From: Elias Lundgren <145569914+elias-lundgren@users.noreply.github.com> Date: Tue, 26 Sep 2023 17:36:45 +0200 Subject: [PATCH] fix: remove quotes around env variable name --- __tests__/buildx/inputs.test.ts | 2 +- src/buildx/inputs.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/__tests__/buildx/inputs.test.ts b/__tests__/buildx/inputs.test.ts index c903ae7f..fcca3626 100644 --- a/__tests__/buildx/inputs.test.ts +++ b/__tests__/buildx/inputs.test.ts @@ -186,7 +186,7 @@ describe('resolveBuildSecret', () => { ])('given %p key and %p env', async (kvp: string, exKey: string, exValue: string, error: Error | null) => { try { const secret = Inputs.resolveBuildSecretEnv(kvp); - expect(secret).toEqual(`id=${exKey},env="${exValue}"`); + expect(secret).toEqual(`id=${exKey},env=${exValue}`); } catch (e) { // eslint-disable-next-line jest/no-conditional-expect expect(e.message).toEqual(error?.message); diff --git a/src/buildx/inputs.ts b/src/buildx/inputs.ts index 7bf830c4..1e1c4c04 100644 --- a/src/buildx/inputs.ts +++ b/src/buildx/inputs.ts @@ -85,7 +85,7 @@ export class Inputs { public static resolveBuildSecretEnv(kvp: string): string { const [key, value] = parseKvp(kvp); - return `id=${key},env="${value}"`; + return `id=${key},env=${value}`; } public static resolveBuildSecret(kvp: string, file: boolean): string {