-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2423 from uktrade/uat
PROD Release
- Loading branch information
Showing
13 changed files
with
1,174 additions
and
1,097 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,26 +3,20 @@ | |
# Exit early if something goes wrong | ||
set -e | ||
|
||
git_clone_base_url="https://codestar-connections.eu-west-2.amazonaws.com/git-http/$AWS_ACCOUNT_ID/eu-west-2/$CODESTAR_CONNECTION_ID/uktrade" | ||
if [ -f "./.gitmodules" ]; then | ||
echo ".gitmodules file exists. Modifying URLs..." | ||
account_id=$(echo $CODESTAR_CONNECTION_ARN | cut -d':' -f5) | ||
connection_id=$(echo $CODESTAR_CONNECTION_ARN | cut -d'/' -f2) | ||
git_clone_base_url="https://codestar-connections.eu-west-2.amazonaws.com/git-http/$account_id/eu-west-2/$connection_id/uktrade" | ||
|
||
git config --global credential.helper '!aws codecommit credential-helper $@' | ||
git config --global credential.UseHttpPath true | ||
git config --global credential.helper '!aws codecommit credential-helper $@' | ||
git config --global credential.UseHttpPath true | ||
|
||
cat <<EOF > ./.gitmodules | ||
[submodule "lite-content"] | ||
path = lite_content | ||
url = $git_clone_base_url/lite-content.git | ||
branch = master | ||
[submodule "lite_routing"] | ||
path = lite_routing | ||
url = $git_clone_base_url/lite-routing.git | ||
branch = main | ||
[submodule "django_db_anonymiser"] | ||
path = django_db_anonymiser | ||
url = $git_clone_base_url/django-db-anonymiser.git | ||
EOF | ||
sed -i "s|url = [email protected]:uktrade/\(.*\).git|url = $git_clone_base_url/\1.git|g" ./.gitmodules | ||
|
||
git submodule update --init --recursive | ||
|
||
sed -i 's/\[packages\]/[packages]\nendesive = "~=1.5.9"/' Pipfile | ||
pipenv lock | ||
git submodule update --init --recursive | ||
|
||
else | ||
echo ".gitmodules file does not exist. No URLs to update." | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.