From 72fb4a2cb84cbe530d6b641b1ed9c99fbc89837b Mon Sep 17 00:00:00 2001 From: Krishna Chaitanya Date: Tue, 4 Jul 2023 17:04:50 +0530 Subject: [PATCH] chore: update release actions w.r.t latest devops directory structure (#2326) --- .github/workflows/prepare-for-prod-deploy.yml | 30 +++++++++---------- .../workflows/prepare-for-staging-deploy.yml | 8 ++--- 2 files changed, 19 insertions(+), 19 deletions(-) diff --git a/.github/workflows/prepare-for-prod-deploy.yml b/.github/workflows/prepare-for-prod-deploy.yml index 109355c469..8545e8a140 100644 --- a/.github/workflows/prepare-for-prod-deploy.yml +++ b/.github/workflows/prepare-for-prod-deploy.yml @@ -120,21 +120,21 @@ jobs: cd rudder-devops git checkout -b shared-transformer-$TAG_NAME - cd helm-charts/shared-services/per-az - yq eval -i ".rudder-transformer.image.tag=\"$TAG_NAME\"" values.blue-release.yaml - yq eval -i ".user-transformer.image.tag=\"$TAG_NAME\"" values.blue-release.yaml - yq eval -i ".rudder-transformer.image.repository=\"$TF_IMAGE_REPOSITORY\"" values.blue-release.yaml - git add values.blue-release.yaml - - yq eval -i ".rudder-transformer.image.tag=\"$TAG_NAME\"" values.enterprise.yaml - yq eval -i ".user-transformer.image.tag=\"$TAG_NAME\"" values.enterprise.yaml - yq eval -i ".rudder-transformer.image.repository=\"$TF_IMAGE_REPOSITORY\"" values.enterprise.yaml - git add values.enterprise.yaml - - yq eval -i ".rudder-transformer.image.tag=\"$TAG_NAME\"" values.multi-tenant.yaml - yq eval -i ".user-transformer.image.tag=\"$TAG_NAME\"" values.multi-tenant.yaml - yq eval -i ".user-transformer.image.repository=\"$TF_IMAGE_REPOSITORY\"" values.multi-tenant.yaml - git add values.multi-tenant.yaml + cd helm-charts/shared-services/per-az/environment/production + yq eval -i ".rudder-transformer.image.tag=\"$TAG_NAME\"" production.yaml + yq eval -i ".user-transformer.image.tag=\"$TAG_NAME\"" production.yaml + yq eval -i ".rudder-transformer.image.repository=\"$TF_IMAGE_REPOSITORY\"" production.yaml + git add production.yaml + + yq eval -i ".rudder-transformer.image.tag=\"$TAG_NAME\"" enterprise/enterprise.yaml + yq eval -i ".user-transformer.image.tag=\"$TAG_NAME\"" enterprise/enterprise.yaml + yq eval -i ".rudder-transformer.image.repository=\"$TF_IMAGE_REPOSITORY\"" enterprise/enterprise.yaml + git add enterprise/enterprise.yaml + + yq eval -i ".rudder-transformer.image.tag=\"$TAG_NAME\"" multi-tenant/multi-tenant.yaml + yq eval -i ".user-transformer.image.tag=\"$TAG_NAME\"" multi-tenant/multi-tenant.yaml + yq eval -i ".user-transformer.image.repository=\"$TF_IMAGE_REPOSITORY\"" multi-tenant/multi-tenant.yaml + git add multi-tenant/multi-tenant.yaml cd ../../config-be-rudder-transformer yq eval -i ".config-be-rudder-transformer.image.tag=\"$TAG_NAME\"" values.prod.yaml diff --git a/.github/workflows/prepare-for-staging-deploy.yml b/.github/workflows/prepare-for-staging-deploy.yml index 74b682f2a7..f8908b37cc 100644 --- a/.github/workflows/prepare-for-staging-deploy.yml +++ b/.github/workflows/prepare-for-staging-deploy.yml @@ -107,10 +107,10 @@ jobs: else git checkout -b $BRANCH_NAME - cd helm-charts/shared-services/per-az - yq eval -i ".rudder-transformer.image.tag=\"$TAG_NAME\"" values.staging.yaml - yq eval -i ".user-transformer.image.tag=\"$TAG_NAME\"" values.staging.yaml - git add values.staging.yaml + cd helm-charts/shared-services/per-az/environment/staging + yq eval -i ".rudder-transformer.image.tag=\"$TAG_NAME\"" staging.yaml + yq eval -i ".user-transformer.image.tag=\"$TAG_NAME\"" staging.yaml + git add staging.yaml cd ../../config-be-rudder-transformer yq eval -i ".config-be-rudder-transformer.image.tag=\"$TAG_NAME\"" values.staging.yaml