From 1713e90b800557630eadc50f7c880f09e562556f Mon Sep 17 00:00:00 2001 From: YaroslavPshenichnikov Date: Tue, 28 Nov 2023 14:16:41 +0300 Subject: [PATCH] FIX pipeline variables export --- .github/workflows/sam-pipeline.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/sam-pipeline.yml b/.github/workflows/sam-pipeline.yml index b5f8394..9289681 100644 --- a/.github/workflows/sam-pipeline.yml +++ b/.github/workflows/sam-pipeline.yml @@ -34,10 +34,10 @@ jobs: - name: Set ELB configuration run: | - BRANCH_PREFIX="${{ github.ref_name }}" # develop or main - DEFAULT_REGION_ELB="${{ secrets[BRANCH_PREFIX + '_DEFAULT_REGION_ELB'] }}" - EU_CENTRAL_1_REGION_ELB="${{ secrets[BRANCH_PREFIX + '_EU_CENTRAL_1_REGION_ELB'] }}" - US_EAST_2_REGION_ELB="${{ secrets[BRANCH_PREFIX + '_US_EAST_2_REGION_ELB'] }}" + export BRANCH_PREFIX="${{ github.ref_name }}" # develop or main + export DEFAULT_REGION_ELB="${{ secrets[BRANCH_PREFIX + '_DEFAULT_REGION_ELB'] }}" + export EU_CENTRAL_1_REGION_ELB="${{ secrets[BRANCH_PREFIX + '_EU_CENTRAL_1_REGION_ELB'] }}" + export US_EAST_2_REGION_ELB="${{ secrets[BRANCH_PREFIX + '_US_EAST_2_REGION_ELB'] }}" sed -i "s/default_region_elb_placeholder/${DEFAULT_REGION_ELB}/g" ./docspace-reverse-proxy/index.mjs sed -i "s/eu_central_1_region_elb_placeholder/${EU_CENTRAL_1_REGION_ELB}/g" ./docspace-reverse-proxy/index.mjs