Skip to content

Commit

Permalink
Add multi process web to render.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
MatheusdeMelo committed Jan 30, 2024
1 parent e88b8e4 commit a373625
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ PORT=3000
if [[ $deploy_process_type != "scheduledtasks" && ( -z "$ECS_SERVICE_TASK_PROCESSES" || $ECS_SERVICE_TASK_PROCESSES =~ $deploy_process_type ) ]]; then
if [[ $deploy_process_type = "web" || $deploy_process_type =~ ^web[1-9] ]]; then
provision_target_group_arn=$(cat .tgarn)
echo "----> This is the target group arn: $provision_target_group_arn"
if [[ $deploy_process_type =~ ^web[1-9] ]]; then
PORT=$(aws secretsmanager get-secret-value --secret-id $deploy_branch_name/$deploy_repository_slug | jq --raw-output '.SecretString' | jq -r .PORT${deploy_process_type^^} || echo false)
fi
Expand Down
2 changes: 1 addition & 1 deletion render.sh
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ if [ -z "$render_is_container_name_present" ]; then
exit 1
fi

if [ ! -z "$render_process_type" ] && [ ! "$render_process_type" == "web" ]; then
if [ ! -z "$render_process_type" ] && [ ! "$render_process_type" == "web" ] && [[ ! "$render_process_type" =~ ^web[1-9] ]]; then
echo "----> Defining entrypoint for non-web process type $render_process_type"
cat <<< $(jq ".containerDefinitions[]=(.containerDefinitions[] | select(.name==\"$render_container_name\") | .entryPoint[0] = \"$render_process_type\" | del(.portMappings))" $render_task_definition) > $render_task_definition
fi
Expand Down

0 comments on commit a373625

Please sign in to comment.