-
Notifications
You must be signed in to change notification settings - Fork 235
Minimal changes for changing global to local #516
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -215,16 +215,13 @@ function build_image() { | |
| repo=$1; shift; | ||
| build=$1; shift; | ||
| btype=$1; shift; | ||
| local tag=$1; shift; | ||
|
|
||
| local local_tags=("$@") # copy arguments to local array | ||
| for i in "${!local_tags[@]}" | ||
| do | ||
| tags="${tags} -t ${repo}:${local_tags[$i]}" | ||
| done | ||
| tags=" -t ${repo}:${tag}" | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. "Is the tags var even referenced anymore?
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah at the time when we call
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Your call - I think either leave a comment explaining why they're different or make that change as you suggest. |
||
|
|
||
| auto_space_line=" " | ||
| image_name="${repo}:${tag}" | ||
| printf -v expanded_tags "%s ${repo}:%s " "-t" "${local_tags[@]}" # concatenate to single string : -t repo:tag -t repo:tag2 | ||
| printf -v expanded_tags "%s ${repo}:%s " "-t" "${tag}" # concatenate to single string : -t repo:tag -t repo:tag2 | ||
| expanded_tags=${expanded_tags%?} # remove trailing space | ||
| dockerfile="Dockerfile.${vm}.${build}.${btype}" | ||
| # Check if we need to build this image. | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.