Skip to content

Commit

Permalink
Merge pull request #176 from elias-lundgren/fix-env-quoting
Browse files Browse the repository at this point in the history
Remove quotes around env variable name in resolveBuildSecretEnv
  • Loading branch information
crazy-max authored Oct 2, 2023
2 parents 9d75f8f + d3d7271 commit f5c9bb7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion __tests__/buildx/inputs.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/buildx/inputs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit f5c9bb7

Please sign in to comment.