From 94a80afd2740a12f7e3185cd4199dae875be46bf Mon Sep 17 00:00:00 2001 From: kymmeh Date: Mon, 13 Feb 2023 10:13:18 +0000 Subject: [PATCH 01/14] Reversing pipeline change --- src/resources/auth/auth.route.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/resources/auth/auth.route.js b/src/resources/auth/auth.route.js index 687959c47..fdc342f38 100644 --- a/src/resources/auth/auth.route.js +++ b/src/resources/auth/auth.route.js @@ -25,7 +25,7 @@ router.get('/status', function (req, res, next) { if (err || !user) { return res.json({ success: true, - data: [{ role: 'Reader', id: null, name: null, loggedIn: false, tempProp: true }], + data: [{ role: 'Reader', id: null, name: null, loggedIn: false }], }); } else { // 1. Reformat teams array for frontend From 1ec8942e131c2853a5bd1849248933dca4570339 Mon Sep 17 00:00:00 2001 From: reubensamuel Date: Tue, 14 Feb 2023 14:36:25 +0000 Subject: [PATCH 02/14] GAT-1887: Adding only dev branch trigger --- .github/workflows/dev_deployment.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/dev_deployment.yaml b/.github/workflows/dev_deployment.yaml index 3e3242a90..05a265a6c 100644 --- a/.github/workflows/dev_deployment.yaml +++ b/.github/workflows/dev_deployment.yaml @@ -2,8 +2,10 @@ name: Build and Deploy to Cloud Run on: push: + branches: + - 'dev' paths: - - 'Chart.yaml' + - 'Chart.yaml' env: PROJECT_ID: '${{ secrets.PROJECT_ID }}' # TODO: update Google Cloud project id. From 3b3909077d3b6805c1c65f67d412c09c62e580e3 Mon Sep 17 00:00:00 2001 From: reubensamuel Date: Tue, 14 Feb 2023 14:36:56 +0000 Subject: [PATCH 03/14] GAT-1887: Adding only dev branch trigger --- .github/workflows/dev_deployment.yaml | 6 ------ 1 file changed, 6 deletions(-) diff --git a/.github/workflows/dev_deployment.yaml b/.github/workflows/dev_deployment.yaml index 05a265a6c..849c12b3d 100644 --- a/.github/workflows/dev_deployment.yaml +++ b/.github/workflows/dev_deployment.yaml @@ -30,12 +30,6 @@ jobs: - name: Read VERSION file id: getversion run: echo "version=$(cat Chart.yaml)" >> $GITHUB_OUTPUT - # Used for production - # - uses: "marvinpinto/action-automatic-releases@latest" - # with: - # repo_token: "${{ secrets.GITHUB_TOKEN }}" - # automatic_release_tag: ${{ steps.getversion.outputs.version }} - # prerelease: false - name: Google Auth id: auth From 768515779b697a3885f40fc04021ee8e89246f37 Mon Sep 17 00:00:00 2001 From: kymmeh Date: Mon, 20 Feb 2023 15:41:16 +0000 Subject: [PATCH 04/14] Testing on dev --- Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Chart.yaml b/Chart.yaml index 5eb312c66..45c7a584f 100644 --- a/Chart.yaml +++ b/Chart.yaml @@ -1 +1 @@ -v0.0.0 \ No newline at end of file +v0.0.1 From 917c12e863d8e3dc09c8300babfd6037c257b724 Mon Sep 17 00:00:00 2001 From: reubensamuel Date: Tue, 21 Feb 2023 11:27:42 +0000 Subject: [PATCH 05/14] GAT-1887: Testing Slack Channel notifications --- .github/workflows/dev_deployment.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.github/workflows/dev_deployment.yaml b/.github/workflows/dev_deployment.yaml index 849c12b3d..630d767a2 100644 --- a/.github/workflows/dev_deployment.yaml +++ b/.github/workflows/dev_deployment.yaml @@ -56,6 +56,15 @@ jobs: run: |- docker build -t '${{ env.GAR_LOCATION }}'-docker.pkg.dev/'${{ env.PROJECT_ID }}'/'${{ env.GAR_NAME }}'/${{ steps.getversion.outputs.version }}:${{ github.sha }} -t '${{ env.GAR_LOCATION }}'-docker.pkg.dev/'${{ env.PROJECT_ID }}'/'${{ env.GAR_NAME }}'/${{ steps.getversion.outputs.version }}:latest ./ docker push --all-tags '${{ env.GAR_LOCATION }}'-docker.pkg.dev/'${{ env.PROJECT_ID }}'/'${{ env.GAR_NAME }}'/${{ steps.getversion.outputs.version }} + + - name: Build Notification + uses: act10ns/slack@v1 + with: + status: ${{ job.status }} + steps: ${{ toJson(steps) }} + channel: '${{ secrets.GITHUBACTIONS_SLACK_CHANNEL' + message: Building {{ env.GITHUB_REF_NAME }} branch + if: always() # END - Docker auth and build @@ -131,4 +140,13 @@ jobs: with: args: run services update '${{ env.SERVICE_NAME }}' --image='${{ env.GAR_LOCATION }}'-docker.pkg.dev/'${{ env.PROJECT_ID }}'/'${{ env.GAR_NAME }}'/${{ steps.getversion.outputs.version }}:${{ github.sha }} --region='${{ env.SERVICE_REGION }}' --project='${{ env.PROJECT_ID }}' + + - name: Deploy Notification + uses: act10ns/slack@v1 + with: + status: ${{ job.status }} + steps: ${{ toJson(steps) }} + channel: '${{ secrets.GITHUBACTIONS_SLACK_CHANNEL' + message: Deploying {{ env.GITHUB_REF_NAME }} branch + if: always() # If required, use the Cloud Run url output in later steps \ No newline at end of file From bb9a680693492de732b0188553b6dcd48c327339 Mon Sep 17 00:00:00 2001 From: reubensamuel Date: Tue, 21 Feb 2023 11:39:40 +0000 Subject: [PATCH 06/14] GAT-1887: Testing Slack Channel notifications --- .github/workflows/dev_deployment.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/dev_deployment.yaml b/.github/workflows/dev_deployment.yaml index 630d767a2..2f4d72aa6 100644 --- a/.github/workflows/dev_deployment.yaml +++ b/.github/workflows/dev_deployment.yaml @@ -62,7 +62,7 @@ jobs: with: status: ${{ job.status }} steps: ${{ toJson(steps) }} - channel: '${{ secrets.GITHUBACTIONS_SLACK_CHANNEL' + channel: '${{ secrets.GITHUBACTIONS_SLACK_CHANNEL }}' message: Building {{ env.GITHUB_REF_NAME }} branch if: always() # END - Docker auth and build @@ -146,7 +146,7 @@ jobs: with: status: ${{ job.status }} steps: ${{ toJson(steps) }} - channel: '${{ secrets.GITHUBACTIONS_SLACK_CHANNEL' + channel: '${{ secrets.GITHUBACTIONS_SLACK_CHANNEL }}' message: Deploying {{ env.GITHUB_REF_NAME }} branch if: always() # If required, use the Cloud Run url output in later steps \ No newline at end of file From dbd6ba8bcc2ea10ac058d0e80eaa91356742b606 Mon Sep 17 00:00:00 2001 From: reubensamuel Date: Tue, 21 Feb 2023 11:43:17 +0000 Subject: [PATCH 07/14] GAT-1887: Testing deployment --- Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Chart.yaml b/Chart.yaml index 45c7a584f..ae39fab35 100644 --- a/Chart.yaml +++ b/Chart.yaml @@ -1 +1 @@ -v0.0.1 +v0.0.0 From df54f818b3d66d6c15f7c72b2362f08798c3bfa2 Mon Sep 17 00:00:00 2001 From: reubensamuel Date: Tue, 21 Feb 2023 12:03:45 +0000 Subject: [PATCH 08/14] GAT-1887: Testing Slack Channel notifications --- .github/workflows/dev_deployment.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/dev_deployment.yaml b/.github/workflows/dev_deployment.yaml index 2f4d72aa6..798ab8482 100644 --- a/.github/workflows/dev_deployment.yaml +++ b/.github/workflows/dev_deployment.yaml @@ -10,6 +10,8 @@ on: env: PROJECT_ID: '${{ secrets.PROJECT_ID }}' # TODO: update Google Cloud project id. GAR_LOCATION: '${{ secrets.GAR_LOCATION }}' # TODO: update Artifact Registry location + SLACK_WEBHOOK_URL: '${{ secrets.GAR_LOCATION }}' + SLACK_CHANNEL: '${{ secrets.GITHUBACTIONS_SLACK_CHANNEL }}' jobs: build: @@ -62,7 +64,7 @@ jobs: with: status: ${{ job.status }} steps: ${{ toJson(steps) }} - channel: '${{ secrets.GITHUBACTIONS_SLACK_CHANNEL }}' + channel: ${{ env.SLACK_CHANNEL }}' message: Building {{ env.GITHUB_REF_NAME }} branch if: always() # END - Docker auth and build From e0c260418e5f639b91e2765b55189a2096cf9855 Mon Sep 17 00:00:00 2001 From: reubensamuel Date: Tue, 21 Feb 2023 12:04:11 +0000 Subject: [PATCH 09/14] GAT-1887: Testing deployment --- Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Chart.yaml b/Chart.yaml index ae39fab35..45c7a584f 100644 --- a/Chart.yaml +++ b/Chart.yaml @@ -1 +1 @@ -v0.0.0 +v0.0.1 From 00d43abda9e1ebe2faa27e2561345a6e97e25c15 Mon Sep 17 00:00:00 2001 From: reubensamuel Date: Tue, 21 Feb 2023 12:07:34 +0000 Subject: [PATCH 10/14] GAT-1887: Testing deployment --- .github/workflows/dev_deployment.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/dev_deployment.yaml b/.github/workflows/dev_deployment.yaml index 798ab8482..c3d299b8f 100644 --- a/.github/workflows/dev_deployment.yaml +++ b/.github/workflows/dev_deployment.yaml @@ -10,7 +10,7 @@ on: env: PROJECT_ID: '${{ secrets.PROJECT_ID }}' # TODO: update Google Cloud project id. GAR_LOCATION: '${{ secrets.GAR_LOCATION }}' # TODO: update Artifact Registry location - SLACK_WEBHOOK_URL: '${{ secrets.GAR_LOCATION }}' + SLACK_WEBHOOK_URL: '${{ secrets.SLACK_WEBHOOK_URL}}' SLACK_CHANNEL: '${{ secrets.GITHUBACTIONS_SLACK_CHANNEL }}' jobs: @@ -64,7 +64,7 @@ jobs: with: status: ${{ job.status }} steps: ${{ toJson(steps) }} - channel: ${{ env.SLACK_CHANNEL }}' + channel: ${{ env.SLACK_CHANNEL }} message: Building {{ env.GITHUB_REF_NAME }} branch if: always() # END - Docker auth and build @@ -148,7 +148,7 @@ jobs: with: status: ${{ job.status }} steps: ${{ toJson(steps) }} - channel: '${{ secrets.GITHUBACTIONS_SLACK_CHANNEL }}' + channel: ${{ env.SLACK_CHANNEL }} message: Deploying {{ env.GITHUB_REF_NAME }} branch if: always() # If required, use the Cloud Run url output in later steps \ No newline at end of file From 87058fe10bce92b365debd905af2a69de1695410 Mon Sep 17 00:00:00 2001 From: reubensamuel Date: Tue, 21 Feb 2023 12:22:36 +0000 Subject: [PATCH 11/14] GAT-1887: Testing Slack Channel notifications --- .github/workflows/dev_deployment.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/dev_deployment.yaml b/.github/workflows/dev_deployment.yaml index c3d299b8f..a4aaf2b5e 100644 --- a/.github/workflows/dev_deployment.yaml +++ b/.github/workflows/dev_deployment.yaml @@ -42,6 +42,7 @@ jobs: service_account: '${{ secrets.WIF_SERVICE_ACCOUNT }}' - name: Login to GAR + id: garlogin uses: docker/login-action@v2 with: registry: ${{ env.GAR_LOCATION }}-docker.pkg.dev/${{ env.PROJECT_ID }}/${{ env.PROJECT_ID }} @@ -49,6 +50,7 @@ jobs: password: ${{ steps.auth.outputs.access_token }} - name: Build and Push Container + id: build shell: bash env: GAR_LOCATION: ${{ secrets.GAR_LOCATION }} @@ -60,6 +62,7 @@ jobs: docker push --all-tags '${{ env.GAR_LOCATION }}'-docker.pkg.dev/'${{ env.PROJECT_ID }}'/'${{ env.GAR_NAME }}'/${{ steps.getversion.outputs.version }} - name: Build Notification + id: buildnotificationsent uses: act10ns/slack@v1 with: status: ${{ job.status }} @@ -144,6 +147,7 @@ jobs: args: run services update '${{ env.SERVICE_NAME }}' --image='${{ env.GAR_LOCATION }}'-docker.pkg.dev/'${{ env.PROJECT_ID }}'/'${{ env.GAR_NAME }}'/${{ steps.getversion.outputs.version }}:${{ github.sha }} --region='${{ env.SERVICE_REGION }}' --project='${{ env.PROJECT_ID }}' - name: Deploy Notification + id: deploynotificationsent uses: act10ns/slack@v1 with: status: ${{ job.status }} From c139aa85485bbc44c7eedcd9db63dba8a3a79b88 Mon Sep 17 00:00:00 2001 From: reubensamuel Date: Tue, 21 Feb 2023 12:23:17 +0000 Subject: [PATCH 12/14] GAT-1887: Testing deployment --- Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Chart.yaml b/Chart.yaml index 45c7a584f..ae39fab35 100644 --- a/Chart.yaml +++ b/Chart.yaml @@ -1 +1 @@ -v0.0.1 +v0.0.0 From 1919293a38fae4b82ac6264c859bc813a823e769 Mon Sep 17 00:00:00 2001 From: reubensamuel <110553227+reubensamuel@users.noreply.github.com> Date: Tue, 21 Feb 2023 16:53:27 +0000 Subject: [PATCH 13/14] GAT-1887: Slack Channel notifications --- .github/workflows/uat_deployment.yaml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/uat_deployment.yaml b/.github/workflows/uat_deployment.yaml index c4a1b1cbf..88592c623 100644 --- a/.github/workflows/uat_deployment.yaml +++ b/.github/workflows/uat_deployment.yaml @@ -11,6 +11,8 @@ on: env: PROJECT_ID: '${{ secrets.PROJECT_ID }}' # TODO: update Google Cloud project id. GAR_LOCATION: '${{ secrets.GAR_LOCATION }}' # TODO: update Artifact Registry location + SLACK_WEBHOOK_URL: '${{ secrets.SLACK_WEBHOOK_URL}}' + SLACK_CHANNEL: '${{ secrets.GITHUBACTIONS_SLACK_CHANNEL }}' jobs: # Deployment please don't modify anything here as the infrastructure is controlled by terraform any changes here please agree with chris and reuben. # catchsha: @@ -60,4 +62,14 @@ jobs: # Deployment please don't modify anything here as the infrastructure with: # args: run services update '${{ env.SERVICE_NAME }}' --image='${{ env.GAR_LOCATION }}'-docker.pkg.dev/'${{ env.DEV_PROJECT_ID }}'/'${{ env.GAR_NAME }}'/${{ steps.getversion.outputs.version }}:{{ steps.catchsha.outputs.GITHUB_SHA}} --region='${{ env.SERVICE_REGION }}' --project='${{ env.PROJECT_ID }}' # Functionality not supported by Github Actions one to ccheck back agin in the future - args: run services update '${{ env.SERVICE_NAME }}' --image='${{ env.GAR_LOCATION }}'-docker.pkg.dev/'${{ env.DEV_PROJECT_ID }}'/'${{ env.GAR_NAME }}'/${{ steps.getversion.outputs.version }}:latest --region='${{ env.SERVICE_REGION }}' --project='${{ env.PROJECT_ID }}' \ No newline at end of file + args: run services update '${{ env.SERVICE_NAME }}' --image='${{ env.GAR_LOCATION }}'-docker.pkg.dev/'${{ env.DEV_PROJECT_ID }}'/'${{ env.GAR_NAME }}'/${{ steps.getversion.outputs.version }}:latest --region='${{ env.SERVICE_REGION }}' --project='${{ env.PROJECT_ID }}' + + - name: Deploy Notification + id: deploynotificationsent + uses: act10ns/slack@v1 + with: + status: ${{ job.status }} + steps: ${{ toJson(steps) }} + channel: ${{ env.SLACK_CHANNEL }} + message: Deploying {{ env.GITHUB_REF_NAME }} branch + if: always() From 6726317a759ba5a34266e0314bd88b7daf19f2a6 Mon Sep 17 00:00:00 2001 From: kymmeh Date: Tue, 28 Feb 2023 13:11:02 +0000 Subject: [PATCH 14/14] GAT-2050: GAT Live Release - v4.0.0 --- Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Chart.yaml b/Chart.yaml index ae39fab35..857572fcd 100644 --- a/Chart.yaml +++ b/Chart.yaml @@ -1 +1 @@ -v0.0.0 +v4.0.0