From 54ae3f429d715574e8f214d6fed63763b4111206 Mon Sep 17 00:00:00 2001 From: Vivian Phung Date: Sat, 22 Jun 2024 17:24:40 -0400 Subject: [PATCH] fix(staging): github client id on frontend staging deployment script (#214) ### TL;DR Update references to the new GitHub repository URLs and make minor formatting fixes in deployment scripts. ### What changed? Updated GitHub repository URLs from `snowball-tools-platform` to `snowball-tools` in various deployment and test scripts. Made minor formatting adjustments including spacing and indentation. ### How to test? Run the deployment scripts in their respective environments to ensure they reference the correct repository URLs and all functionalities work as expected. Check for successful creation and updation of application records. ### Why make this change? This change was made to reflect the new repository structure and ensure consistency across all deployment scripts. The minor formatting fixes improve code readability. --- --- packages/deployer/deploy-frontend.sh | 10 +++++----- packages/deployer/deploy-frontend.staging.sh | 10 +++++----- .../records/application-deployment-request.yml | 8 ++++---- .../application-deployment-request.yml | 14 +++++++------- .../staging-records/application-record.yml | 4 ++-- packages/deployer/test/README.md | 2 +- .../records/application-deployment-request.yml | 4 ++-- .../deployer/test/records/application-record.yml | 2 +- .../test/test-webapp-deployment-undeployment.sh | 16 ++++++++-------- 9 files changed, 35 insertions(+), 35 deletions(-) diff --git a/packages/deployer/deploy-frontend.sh b/packages/deployer/deploy-frontend.sh index cb87f27b..06840745 100755 --- a/packages/deployer/deploy-frontend.sh +++ b/packages/deployer/deploy-frontend.sh @@ -26,7 +26,7 @@ if [ -z "$NEW_APPLICATION_VERSION" ] || [ "1" == "$NEW_APPLICATION_VERSION" ]; t fi # Generate application-deployment-request.yml -cat > ./records/application-deployment-request.yml <./records/application-deployment-request.yml < ./records/application-record.yml <./records/application-record.yml < ./staging-records/application-deployment-request.yml <./staging-records/application-deployment-request.yml < ./staging-records/application-record.yml <./staging-records/application-record.yml < (main branch) - Config used: [../config.yml](../config.yml) - The script [test-webapp-deployment-undeployment.sh](./test-webapp-deployment-undeployment.sh) performs the following: - Create / update [`ApplicationRecord`](./records/application-record.yml) and [`ApplicationDeploymentRequest`](./records/application-deployment-request.yml) records with latest meta data from the repo diff --git a/packages/deployer/test/records/application-deployment-request.yml b/packages/deployer/test/records/application-deployment-request.yml index 17fee5fa..2f7df4ae 100644 --- a/packages/deployer/test/records/application-deployment-request.yml +++ b/packages/deployer/test/records/application-deployment-request.yml @@ -1,6 +1,6 @@ record: type: ApplicationDeploymentRequest - version: '1.0.0' + version: "1.0.0" name: deployment-test-app@0.1.24 application: crn://snowballtools/applications/deployment-test-app@0.1.24 dns: deployment-ci-test @@ -11,5 +11,5 @@ record: CERC_WEBAPP_DEBUG: 0 meta: note: Deployment test @ Thu 11 Apr 2024 07:29:19 AM UTC - repository: "https://github.com/snowball-tools-platform/test-progressive-web-app" + repository: "https://github.com/snowball-tools/test-progressive-web-app" repository_ref: 05819619487a0d2dbc5453b6d1ccff3044c0dd26 diff --git a/packages/deployer/test/records/application-record.yml b/packages/deployer/test/records/application-record.yml index f6c24d39..6c599c8d 100644 --- a/packages/deployer/test/records/application-record.yml +++ b/packages/deployer/test/records/application-record.yml @@ -2,7 +2,7 @@ record: type: ApplicationRecord version: 0.0.1 repository_ref: 05819619487a0d2dbc5453b6d1ccff3044c0dd26 - repository: ["https://github.com/snowball-tools-platform/test-progressive-web-app"] + repository: ["https://github.com/snowball-tools/test-progressive-web-app"] app_type: webapp name: deployment-test-app app_version: 0.1.24 diff --git a/packages/deployer/test/test-webapp-deployment-undeployment.sh b/packages/deployer/test/test-webapp-deployment-undeployment.sh index 4817fb9b..f221811e 100755 --- a/packages/deployer/test/test-webapp-deployment-undeployment.sh +++ b/packages/deployer/test/test-webapp-deployment-undeployment.sh @@ -1,7 +1,7 @@ #!/bin/bash # Repository URL -REPO_URL="https://github.com/snowball-tools-platform/test-progressive-web-app" +REPO_URL="https://github.com/snowball-tools/test-progressive-web-app" # Get the latest commit hash from the repository LATEST_HASH=$(git ls-remote $REPO_URL HEAD | awk '{print $1}') @@ -32,7 +32,7 @@ fi # Generate application-record.yml with incremented version RECORD_FILE=packages/deployer/test/records/application-record.yml -cat > $RECORD_FILE <$RECORD_FILE < $REQUEST_RECORD_FILE <$REQUEST_RECORD_FILE < $REMOVAL_REQUEST_RECORD_FILE <$REMOVAL_REQUEST_RECORD_FILE <