Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Mirch committed Aug 26, 2024
2 parents d630a9e + 961e2a1 commit 9a228ef
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions scripts/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,12 @@

commands = [
"pip3 install cargo-lambda",
"cargo lambda build --release --output-format zip"
"cargo lambda build --release --output-format zip",
"mkdir -p infrastructure/data/lambdas"
]
os.system("; ".join(commands))

functions = [name for name in os.listdir("target/lambda/")]

commands.append("mkdir -p infrastructure/data/lambdas")

for function in functions:
commands.append(f"cp target/lambda/{function}/bootstrap.zip infrastructure/data/lambdas/{function}.zip")
os.system("; ".join(commands))

0 comments on commit 9a228ef

Please sign in to comment.