-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1447 from arooshap/modify_deploy.sh
Script to automate deployment for dbs services in production.
- Loading branch information
Showing
1 changed file
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/bin/bash | ||
|
||
# Define the target namespace in the new cluster | ||
target_namespace="dbs" | ||
|
||
# Mapping of service names to their full image tags | ||
declare -A service_image_tags=( | ||
["check-metric"]="registry.cern.ch/cmsweb/check-metric:20220404-stable" | ||
["dbs2go-global-m"]="registry.cern.ch/cmsweb/dbs2go:v00.06.42-stable" | ||
["dbs2go-global-migration"]="registry.cern.ch/cmsweb/dbs2go:v00.06.42-stable" | ||
["dbs2go-global-r"]="registry.cern.ch/cmsweb/dbs2go:v00.06.42-stable" | ||
["dbs2go-global-w"]="registry.cern.ch/cmsweb/dbs2go:v00.06.43-stable" | ||
["dbs2go-phys03-m"]="registry.cern.ch/cmsweb/dbs2go:v00.06.42-stable" | ||
["dbs2go-phys03-migration"]="registry.cern.ch/cmsweb/dbs2go:v00.06.42-stable" | ||
["dbs2go-phys03-r"]="registry.cern.ch/cmsweb/dbs2go:v00.06.42-stable" | ||
["dbs2go-phys03-w"]="registry.cern.ch/cmsweb/dbs2go:v00.06.43-stable" | ||
) | ||
|
||
# Loop through the service names and their full image tags | ||
for service in "${!service_image_tags[@]}"; do | ||
full_image_tag="${service_image_tags[$service]}" | ||
tag_part="${full_image_tag##*:}" | ||
echo "Deploying $service with image tag $tag_part to $target_namespace namespace" | ||
./deploy-srv.sh "$service" "$tag_part" | ||
done | ||
|