Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

Commit

Permalink
add gcp image list command to CLI
Browse files Browse the repository at this point in the history
Signed-off-by: Janine Olear <pninak@web.de>
  • Loading branch information
miyunari committed Oct 11, 2022
1 parent 1794194 commit e086b71
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ jobs:
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
GCP_APP_CREDENTIALS: ${{ secrets.GOOGLE_APPLICATION_CREDENTIALS}}

- name: Run pytest with offline tests only
if: env.SECRET_CHECK == null
Expand Down
6 changes: 6 additions & 0 deletions src/rhelocator/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,12 @@ def aws_regions() -> None:
regions = update_images.get_aws_regions()
click.echo(json.dumps(regions, indent=2))

@click.command()
def gcp_images() -> None:
"""Dump GCP images for all regions in JSON format"""
images = update_images.get_google_images()
click.echo(json.dumps(images, indent=2))

cli.add_command(aws_hourly_images)
cli.add_command(aws_regions)
cli.add_command(gcp_images)

0 comments on commit e086b71

Please sign in to comment.