-
Notifications
You must be signed in to change notification settings - Fork 221
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix #543: build with correct image names #586
base: main
Are you sure you want to change the base?
Conversation
- Method `extendImage` created image with the default name ignoring `--image-name` option. - The image could not be tagged after building, because CLI exited with `ERROR: denied: requested access to the resource is denied` after pushing attempt. - Added image names from `--image-names` option at building stage.
@microsoft-github-policy-service agree |
@@ -90,14 +88,18 @@ export async function extendImage(params: DockerResolverParameters, config: Subs | |||
for (const buildArg in featureBuildInfo.buildArgs) { | |||
args.push('--build-arg', `${buildArg}=${featureBuildInfo.buildArgs[buildArg]}`); | |||
} | |||
|
|||
const folderImageName = getFolderImageName(common); | |||
const updatedImageName: string[] = imageNames ?? [`${imageName.startsWith(folderImageName) ? imageName : folderImageName}-features`]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking quickly at CI, I think imageName
might need a null check here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @invasy 👋
Apologies on missing out on this PR, would you be still interested in checking this PR?
Closes #543
Problem
extendImage
created image with the default name ignoring--image-name
option.ERROR: denied: requested access to the resource is denied
after pushing attempt.Solution
--image-names
option at building stage.