Files
nocodb/scripts/release/prod_executors.sh
2024-07-22 12:40:43 +03:00

23 lines
758 B
Bash
Executable File
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/bin/bash
# caution: This script is for production
#
# forces ecs to relaunch the tasks/instances
# when relaunched a new docker image will be pulled
# resulting in rolling out a software/config or just
# restart.
#
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
source ${SCRIPT_DIR}/rollout_util.sh
PROMOTE_IMAGE_BEFORE_ROLLOUT="${1:-false}"
ENVIRONMENT="Prod-SQL-Executors"
PRE_REL_STAGE_TAG="ws-pre-release"
STAGE_TAG="ws"
EXCLUDED_SVC=" nocohub-service nocohub-001-prod nocohub-001-ingester nocohub-001-prod-ingester "
CLUSTER="executors-prod"
ASG_NAME=executor-services-prod
ECR_REPO_NAME="nc-sql-executor"
# prewarm_asg
# function call in rollout_util.sh file
perform_rollout "${PROMOTE_IMAGE_BEFORE_ROLLOUT}"