Skip to content

Commit

Permalink
ci: sets variable for models directory path
Browse files Browse the repository at this point in the history
  • Loading branch information
yosefmaru committed Aug 21, 2024
1 parent 2e106b6 commit 2664875
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/aind_data_schema_models/utils/write_to_docdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
)

DB_NAME = os.getenv("DB_NAME")
PATH_TO_MODELS = os.getenv("PATH_TO_MODELS")
DOCDB_READWRITE_SECRET = os.getenv("READWRITE_SECRET")
DOCDB_SSH_TUNNEL_SECRET = os.getenv("DOCDB_SSH_TUNNEL_SECRET")
AWS_DEFAULT_REGION = os.getenv("AWS_DEFAULT_REGION")
Expand Down Expand Up @@ -40,7 +41,7 @@ def publish_to_docdb(folder_path: str, credentials: DocumentDbSSHCredentials) ->


if __name__ == "__main__":
folder_path = '../models'
folder_path = PATH_TO_MODELS
credentials = DocumentDbSSHCredentials.from_secrets_manager(
doc_db_secret_name=DOCDB_READWRITE_SECRET,
ssh_secret_name=DOCDB_SSH_TUNNEL_SECRET
Expand Down

0 comments on commit 2664875

Please sign in to comment.