Skip to content

Commit

Permalink
Added directory walk for lambda deployment for docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
BanaSeba committed Dec 27, 2024
1 parent 590f5ee commit a0fcc9b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/api.nameguard.io/terraform/deploy_lambda.sh
Original file line number Diff line number Diff line change
Expand Up @@ -198,10 +198,12 @@ if [ ! -f "../Dockerfile" ]; then
fi

echo "Building Docker image..."
if ! docker build ../ -t nameguard; then
cd ../../packages/nameguard-python
if ! docker build -t nameguard; then
echo "Error: Docker build failed"
exit 1
fi
cd ../../apps/api.nameguard.io/terraform

echo "Tagging Docker image..."
if ! docker tag nameguard:latest ${ECR_URL}:latest; then
Expand Down

0 comments on commit a0fcc9b

Please sign in to comment.