Skip to content

Commit

Permalink
Add zoom regions map
Browse files Browse the repository at this point in the history
  • Loading branch information
YaroslavPshenichnikov committed Sep 13, 2024
1 parent 673e638 commit 8e6a43d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/sam-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,13 @@ jobs:
if [[ "${{ github.ref_name }}" == "develop" ]]; then
echo '${{ secrets.DEVELOP_REGIONS_MAP_BASE64 }}' | base64 -d > regions_map.tmp
echo '${{ secrets.DEVELOP_DDB_REGIONS_MAP_BASE64 }}' | base64 -d > ddb_regions_map.tmp
echo '${{ secrets.ZOOM_DEVELOP_REGIONS_MAP_BASE64 }}' | base64 -d > zoom_regions_map.tmp
elif [[ "${{ github.ref_name }}" == "main" ]]; then
echo '${{ secrets.MAIN_REGIONS_MAP_BASE64 }}' | base64 -d > regions_map.tmp
echo '${{ secrets.MAIN_DDB_REGIONS_MAP_BASE64 }}' | base64 -d > ddb_regions_map.tmp
fi
awk -v rmap="$(<regions_map.tmp)" '{ gsub(/regionsMap_placeholder/, rmap); print; }' ./docspace-reverse-proxy/index.mjs > temp_index.mjs && mv temp_index.mjs ./docspace-reverse-proxy/index.mjs
awk -v rmap="$(<zoom_regions_map.tmp)" '{ gsub(/zoom_regionsMap_placeholder/, rmap); print; }' ./zoom-reverse-proxy/index.mjs > temp_index.mjs && mv temp_index.mjs ./zoom-reverse-proxy/index.mjs
awk -v rmap="$(<ddb_regions_map.tmp)" '{ gsub(/ddbRegionsMap_placeholder/, rmap); print; }' ./docspace-reverse-proxy/index.mjs > temp_index.mjs && mv temp_index.mjs ./docspace-reverse-proxy/index.mjs
awk -v rmap="$(<ddb_regions_map.tmp)" '{ gsub(/ddbRegionsMap_placeholder/, rmap); print; }' ./zoom-reverse-proxy/index.mjs > temp_index.mjs && mv temp_index.mjs ./zoom-reverse-proxy/index.mjs
Expand Down
2 changes: 1 addition & 1 deletion zoom-reverse-proxy/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ if (!DEBUG_MODE_ON) {

const cachedItem = {};
const regionsMap = {
regionsMap_placeholder
zoom_regionsMap_placeholder
};

const ddbRegionsMap = {
Expand Down

0 comments on commit 8e6a43d

Please sign in to comment.