Skip to content

Commit 4cda830

Browse files
committed
Update deployment steps
1 parent daf918c commit 4cda830

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

.tools/test/DEPLOYMENT.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ python -m venv .venv && source .venv/bin/activate && pip install -r requirements
2525
#### Command Syntax
2626

2727
```bash
28-
python stacks/deploy.py --type <deployment_type>
28+
cd stacks ; python deploy.py <stack>
2929
```
3030

31-
Replace `<deployment_type>` with one of the supported types:
31+
Replace `<stack>` with one of the supported stacks:
3232

3333
- `admin`: Deploys admin-specific resources.
3434
- `images`: Deploys image-related resources.

.tools/test/stacks/deploy.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,9 @@ def deploy_resources(account_id, account_name, dir, lang="typescript"):
9696

9797

9898
def main():
99-
parser = argparse.ArgumentParser(description="admin, images, or plugin flag.")
99+
parser = argparse.ArgumentParser(description="admin, images, or plugin stack.")
100100
parser.add_argument("type", choices=["admin", "images", "plugin"])
101+
parser.add_argument("--language")
101102
args = parser.parse_args()
102103

103104
if args.type in {"admin", "images"}:
@@ -119,7 +120,12 @@ def main():
119120
except Exception as e:
120121
print(f"Failed to read config data: \n{e}")
121122

122-
for account_name, account_info in accounts.items():
123+
if args.language:
124+
items = [(args.language, accounts[args.language])]
125+
else:
126+
items = accounts.items()
127+
128+
for account_name, account_info in items:
123129
print(
124130
f"Reading from account {account_name} with ID {account_info['account_id']}"
125131
)

0 commit comments

Comments
 (0)