Skip to content

Commit

Permalink
workflow updated with platform vars from ssm param store
Browse files Browse the repository at this point in the history
  • Loading branch information
priyaranjanpatil committed Dec 4, 2023
1 parent f05b9df commit 87b7ca3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/github-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
id: getParameters
run: |
# Replace '--path' with your specific path from Parameter Store
parameters=$(aws ssm get-parameters-by-path --path "/core/es_indexer/dev_ecr_ecs_config/" --recursive --query 'Parameters[*].[Name,Value]' --output json)
parameters=$(aws ssm get-parameters-by-path --path "/core/geonetwork4/dev_ecr_ecs_config/" --recursive --query 'Parameters[*].[Name,Value]' --output json)
echo "$parameters" > parameters.json
echo "::set-output name=parameters_json::$parameters"
Expand All @@ -71,16 +71,16 @@ jobs:
# Perform actions using parameter values here
# For example, set environment variables
if [ "$name" = "/core/es_indexer/dev_ecr_ecs_config/ecr_repo" ]; then
if [ "$name" = "/core/geonetwork4/dev_ecr_ecs_config/ecr_repo" ]; then
echo "ECR_REPOSITORY=$value" >> "$GITHUB_ENV"
fi
if [ "$name" = "/core/es_indexer/dev_ecr_ecs_config/ecs_cluster" ]; then
if [ "$name" = "/core/geonetwork4/dev_ecr_ecs_config/ecs_cluster" ]; then
echo "ECS_CLUSTER=$value" >> "$GITHUB_ENV"
fi
if [ "$name" = "/core/es_indexer/dev_ecr_ecs_config/ecs_service" ]; then
if [ "$name" = "/core/geonetwork4/dev_ecr_ecs_config/ecs_service" ]; then
echo "ECS_SERVICE=$value" >> "$GITHUB_ENV"
fi
if [ "$name" = "/core/es_indexer/dev_ecr_ecs_config/container_name" ]; then
if [ "$name" = "/core/geonetwork4/dev_ecr_ecs_config/container_name" ]; then
echo "CONTAINER_NAME=$value" >> "$GITHUB_ENV"
fi
done
Expand Down

0 comments on commit 87b7ca3

Please sign in to comment.