Skip to content

Commit

Permalink
deployment to US and Europe simultaneously
Browse files Browse the repository at this point in the history
  • Loading branch information
robgutsopedra committed May 7, 2024
1 parent 1af6f12 commit 095581d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/manual-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ jobs:
cat "deployment_envs/$app_name/dev.env" > $HOME/eu-$app_name-envfile.env
cat "deployment_envs/$app_name/region/$REGION/dev.env" > $HOME/$REGION-$app_name-envfile.env
fi
if [[ -f "deployment_envs/$app_name/common.env" ]]; then
if [[ -f "deployment_envs/$app_name/common.env" || -f "deployment_envs/$app_name/region/$REGION/common.env" ]]; then
echo "Please delete deployment_envs/$app_name/common.env or deployment_envs/$app_name/region/$REGION/common.env" >> $GITHUB_STEP_SUMMARY
fi
done
Expand Down Expand Up @@ -273,7 +273,7 @@ jobs:
do
echo "Deploying in Europe region for $app_name"
cd $APP_SQUAD/$app_name/overlay/$ENVIRONMENT
FILE_ENV=$(ls | grep ".env");cat $HOME/$app_name-envfile.env > $FILE_ENV
FILE_ENV=$(ls | grep ".env");cat $HOME/eu-$app_name-envfile.env > $FILE_ENV
kustomize edit set image app=${IMAGE_NAME}:${TAGS}
git config --local user.email $GITHUB_EMAIL
git config --local user.name $GITHUB_USER
Expand All @@ -298,7 +298,7 @@ jobs:
else
cd $APP_SQUAD/${APP_NAMES}/overlay/$ENVIRONMENT
fi
FILE_ENV=$(ls | grep ".env");cat $HOME/envfile.env > $FILE_ENV
FILE_ENV=$(ls | grep ".env");cat $HOME/eu-envfile.env > $FILE_ENV
kustomize edit set image app=${IMAGE_NAME}:${TAGS}
git config --local user.email $GITHUB_EMAIL
git config --local user.name $GITHUB_USER
Expand Down

0 comments on commit 095581d

Please sign in to comment.