Skip to content
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

Define CUDA versions for workflows centrally #1052

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update get_docker_info.py
  • Loading branch information
rickardp authored Mar 29, 2024
commit 288939317ab1d130200697b533d09b3907bc5a6b
11 changes: 7 additions & 4 deletions scripts/get_docker_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,15 @@ def main():
ap = argparse.ArgumentParser()
ap.add_argument("dockerfile")
ap.add_argument("target")
ap.add_argument("-t", "--tag-only", action="store_true")
ap.add_argument("-v", "--version-only", action="store_true")
args = ap.parse_args()
image = find_image_in_dockerfile(args.dockerfile, args.target)
if args.version_only:
image = image.rpartition(":")[-1]
print(image)
result = find_image_in_dockerfile(args.dockerfile, args.target)
if args.tag_only or args.version_only:
result = result.rpartition(":")[-1]
if args.version_only:
result = result.split("-")[0]
print(result)

if __name__ == '__main__':
main()