Skip to content

Commit

Permalink
repo name from the env
Browse files Browse the repository at this point in the history
  • Loading branch information
nolan committed Jul 11, 2024
1 parent b89af7b commit eab82b3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ COPY --from=ghcr.io/skyscrapers/terragrunt:opentofu_v1.6.2 /usr/local/bin/tofu /
COPY --from=ghcr.io/skyscrapers/terragrunt:opentofu_v1.6.2 /usr/local/bin/terragrunt /usr/local/bin/terragrunt

#Code execution
ENTRYPOINT [ "python", "/usr/bin/gen-wiki.py", "/config.yml", "output/", $REPO_NAME ]
ENTRYPOINT [ "python", "/usr/bin/gen-wiki.py", "/config.yml", "output/"]
3 changes: 1 addition & 2 deletions gen-wiki.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,7 @@ def clean_up_directory(directory_list):
parser = argparse.ArgumentParser(description='Extract secrets using terragrunt state pull based on a YAML configuration.')
parser.add_argument('config_file', help='Path to the YAML configuration file')
parser.add_argument('output_dir', help='Path to the output directory')
parser.add_argument('repo_name', help='Name of the repo you want to create a doc for')
parser.add_argument('--environments', nargs='+', default=['development', 'production', 'test', 'staging'], help='Environments to process')
parser.add_argument('--repo_name', default=os.getenv("REPO_NAME"), help='Name of the repo you want to create a doc for')
parser.add_argument('--shared_dir', default='shared', help='Directory for shared resources')

args = parser.parse_args()
Expand Down

0 comments on commit eab82b3

Please sign in to comment.