Skip to content

Commit

Permalink
WIP: deprecate image if requested
Browse files Browse the repository at this point in the history
  • Loading branch information
dustymabe committed Apr 6, 2020
1 parent 985e6bc commit c402076
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/cosalib/gcp.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,12 @@ def gcp_run_ore(build, args):
ore_args.extend(['--family', args.family])

run_verbose(ore_args)

# Here is where I would do something like:
if args.deprecate:
run_verbose(ore gcloud deprecate-image --image-name gcp_name)


build.meta['gcp'] = {
'image': gcp_name,
'url': open(urltmp).read().strip()
Expand Down

0 comments on commit c402076

Please sign in to comment.