Skip to content

Commit 1cd448f

Browse files
authored
Merge pull request #1975 from ChildMindInstitute/release/2025.11.1
Release 2025.11.1
2 parents b53ca65 + f029c7e commit 1cd448f

10 files changed

Lines changed: 214 additions & 205 deletions

File tree

.env.default

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,20 +61,27 @@ CDN__ENDPOINT_URL=http://localhost:9000
6161
CDN__SECRET_KEY=miniosecret
6262
CDN__ACCESS_KEY=minioaccess
6363
CDN__REGION=
64-
CDN__BUCKET_ANSWER=media
64+
CDN__BUCKET_ANSWER=answer
6565
CDN__BUCKET=media
66-
CDN__BUCKET_OPERATIONS=media
66+
CDN__BUCKET_OPERATIONS=operations
6767
CDN__STORAGE_ADDRESS=http://localhost:9000
6868
CDN__TTL_SIGNED_URLS=3600
6969

7070
# jsonld converter
7171
JSONLD_CONVERTER__PROTOCOL_PASSWORD=
7272

7373
# RabbitMq
74-
# Uncommnent for local development
74+
# Uncomment for local development
7575
# RABBITMQ__USE_SSL=False
7676
RABBITMQ__URL=localhost
7777

78+
# MinIO
79+
# Uncomment for local development
80+
# AWS_ACCESS_KEY_ID=minioaccess
81+
# AWS_SECRET_ACCESS_KEY=miniosecret
82+
# AWS_ENDPOINT_URL=http://localhost:9000
83+
# AWS_DEFAULT_REGION=us-east-1
84+
7885
# Secret key for data encryption. Use this key only for local development
7986
SECRETS__SECRET_KEY=0eb7f5d4c1367199c21e9a2ec793b5a481b60fe2af24464bcb18ac7fa48a645f
8087

.github/workflows/coverage.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
name: Coverage
22
on:
3-
push:
4-
branches:
5-
- develop
3+
workflow_dispatch: {}
4+
# push:
5+
# branches:
6+
# - develop
67

78
permissions:
89
statuses: write

.github/workflows/pr-close.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
name: Tear down preview environment for pull request
22

33
on:
4-
pull_request:
5-
types:
6-
- closed
4+
workflow_dispatch: {}
5+
# pull_request:
6+
# types:
7+
# - closed
78

89
# Cancel any in progress since we are shutting down
910
concurrency:

.github/workflows/pr-open.yml

Lines changed: 74 additions & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -15,31 +15,31 @@ concurrency:
1515

1616

1717
jobs:
18-
create-database:
19-
name: Create preview env DB
20-
uses: ChildMindInstitute/mindlogger-backend-refactor/.github/workflows/create_db.yaml@develop
21-
with:
22-
db-name: "mindlogger_backend_pr_${{ github.event.number }}"
23-
secrets: inherit
24-
25-
on-db-failure:
26-
name: Database creation failed
27-
runs-on: ubuntu-latest
28-
if: ${{ always() && (needs.create_database.result == 'failure' || needs.create_database.result == 'timed_out') }}
29-
needs: [create-database]
30-
steps:
31-
- name: "Send Slack message on failure"
32-
uses: rtCamp/action-slack-notify@v2
33-
env:
34-
SLACK_COLOR: failure
35-
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_TEST_RESULTS }}
36-
SLACK_TITLE: Create Database
37-
SLACK_MESSAGE: 'Error during database creation!'
38-
SLACK_ICON: https://github.com/github.png?size=48
39-
MSG_MINIMAL: actions url
18+
# create-database:
19+
# name: Create preview env DB
20+
# uses: ChildMindInstitute/mindlogger-backend-refactor/.github/workflows/create_db.yaml@develop
21+
# with:
22+
# db-name: "mindlogger_backend_pr_${{ github.event.number }}"
23+
# secrets: inherit
24+
#
25+
# on-db-failure:
26+
# name: Database creation failed
27+
# runs-on: ubuntu-latest
28+
# if: ${{ always() && (needs.create_database.result == 'failure' || needs.create_database.result == 'timed_out') }}
29+
# needs: [create-database]
30+
# steps:
31+
# - name: "Send Slack message on failure"
32+
# uses: rtCamp/action-slack-notify@v2
33+
# env:
34+
# SLACK_COLOR: failure
35+
# SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_TEST_RESULTS }}
36+
# SLACK_TITLE: Create Database
37+
# SLACK_MESSAGE: 'Error during database creation!'
38+
# SLACK_ICON: https://github.com/github.png?size=48
39+
# MSG_MINIMAL: actions url
4040

4141
run-unit-tests:
42-
uses: .github/workflows/tests.yaml
42+
uses: ./.github/workflows/tests.yaml
4343
secrets: inherit
4444

4545
comment-unit-tests:
@@ -52,14 +52,14 @@ jobs:
5252
statuses: write
5353
needs: [ run-unit-tests ]
5454
steps:
55-
- name: Post the link to the report
56-
uses: guibranco/github-status-action-v2@v1
57-
with:
58-
authToken: ${{secrets.GITHUB_TOKEN}}
59-
context: 'Unit Test report'
60-
state: ${{ needs.run-unit-tests.result }}
61-
sha: ${{ github.event.pull_request.head.sha }}
62-
target_url: ${{ needs.run-unit-tests.outputs.report-url }}
55+
# - name: Post the link to the report
56+
# uses: guibranco/github-status-action-v2@v1
57+
# with:
58+
# authToken: ${{secrets.GITHUB_TOKEN}}
59+
# context: 'Unit Test report'
60+
# state: ${{ needs.run-unit-tests.result }}
61+
# sha: ${{ github.event.pull_request.head.sha }}
62+
# target_url: ${{ needs.run-unit-tests.outputs.report-url }}
6363
- name: "Send Slack message on failure"
6464
if: ${{ needs.run-unit-tests.result != 'success' }}
6565
uses: rtCamp/action-slack-notify@v2
@@ -78,49 +78,49 @@ jobs:
7878
SLACK_ICON: https://github.com/github.png?size=48
7979
MSG_MINIMAL: true
8080

81-
create-preview-env:
82-
needs: [create-database, run-unit-tests]
83-
uses: ChildMindInstitute/mindlogger-backend-refactor/.github/workflows/create-preview-env.yaml@develop
84-
with:
85-
env-name: "pr-${{ github.event.number }}"
86-
env-snake-name: "pr_${{ github.event.number }}"
87-
app-name: ${{ github.event.repository.name }}
88-
vpc-id: vpc-0a83201b71e854abd
89-
copilot-service: mindlogger-backend
90-
secrets: inherit
91-
92-
comment-create-preview-env:
93-
name: Comment on preview env
94-
runs-on: ubuntu-latest
95-
permissions:
96-
issues: write
97-
pull-requests: write
98-
needs: [create-preview-env]
99-
if: ${{ !cancelled() }}
100-
steps:
101-
- name: Comment on PR
102-
uses: thollander/actions-comment-pull-request@v2
103-
with:
104-
message: |
105-
:arrow_right: Preview environment created: [Click Me!](${{ needs.create-preview-env.outputs.service-url }})
106-
reactions: eyes, rocket
107-
comment_tag: service-url
108-
- name: "Send Slack message on failure"
109-
uses: rtCamp/action-slack-notify@v2
110-
if: ${{ !cancelled() && needs.create-preview-env.result == 'failure' }}
111-
env:
112-
SLACK_COLOR: failure
113-
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_TEST_RESULTS }}
114-
SLACKIFY_MARKDOWN: true
115-
SLACK_TITLE: |
116-
:rotating_light: Preview Environment Failed
117-
SLACK_MESSAGE: >-
118-
Failed to create a preview env for PR-${{ github.event.pull_request.number}} in ${{ github.repository }}
119-
\n\n
120-
:arrow_right: [Action Run](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})
121-
\n\n
122-
:label: [Pull Request](${{ github.event.pull_request.html_url || github.event.head_commit.url }})
123-
MSG_MINIMAL: true
81+
# create-preview-env:
82+
# needs: [create-database, run-unit-tests]
83+
# uses: ChildMindInstitute/mindlogger-backend-refactor/.github/workflows/create-preview-env.yaml@develop
84+
# with:
85+
# env-name: "pr-${{ github.event.number }}"
86+
# env-snake-name: "pr_${{ github.event.number }}"
87+
# app-name: ${{ github.event.repository.name }}
88+
# vpc-id: vpc-0a83201b71e854abd
89+
# copilot-service: mindlogger-backend
90+
# secrets: inherit
91+
#
92+
# comment-create-preview-env:
93+
# name: Comment on preview env
94+
# runs-on: ubuntu-latest
95+
# permissions:
96+
# issues: write
97+
# pull-requests: write
98+
# needs: [create-preview-env]
99+
# if: ${{ !cancelled() }}
100+
# steps:
101+
# - name: Comment on PR
102+
# uses: thollander/actions-comment-pull-request@v2
103+
# with:
104+
# message: |
105+
# :arrow_right: Preview environment created: [Click Me!](${{ needs.create-preview-env.outputs.service-url }})
106+
# reactions: eyes, rocket
107+
# comment_tag: service-url
108+
# - name: "Send Slack message on failure"
109+
# uses: rtCamp/action-slack-notify@v2
110+
# if: ${{ !cancelled() && needs.create-preview-env.result == 'failure' }}
111+
# env:
112+
# SLACK_COLOR: failure
113+
# SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_TEST_RESULTS }}
114+
# SLACKIFY_MARKDOWN: true
115+
# SLACK_TITLE: |
116+
# :rotating_light: Preview Environment Failed
117+
# SLACK_MESSAGE: >-
118+
# Failed to create a preview env for PR-${{ github.event.pull_request.number}} in ${{ github.repository }}
119+
# \n\n
120+
# :arrow_right: [Action Run](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})
121+
# \n\n
122+
# :label: [Pull Request](${{ github.event.pull_request.html_url || github.event.head_commit.url }})
123+
# MSG_MINIMAL: true
124124

125125
# Might do this in the future
126126
# docker-scan:

.github/workflows/run_build_deploy_prod.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,3 +70,16 @@ jobs:
7070
with:
7171
env-name: prod
7272
image-tag: ${{ needs.ref.outputs.target-ref }}
73+
74+
notify:
75+
name: Notifications
76+
needs: [ ref, deploy-prod ]
77+
uses: ./.github/workflows/_notify-jira.yaml
78+
with:
79+
env-name: prod
80+
git-tag: ${{ needs.ref.outputs.target-ref }}
81+
secrets:
82+
devops-repo-key: ${{ secrets.DEVOPS_REPO_KEY }}
83+
jira-api-token: ${{ secrets.JIRA_API_TOKEN }}
84+
github-pat: ${{ secrets.DEVOPS_GITHUB_TOKEN }}
85+
slack-webhook: ${{ secrets.SLACK_WEBHOOK_RELEASE_COMMUNICATIONS }}

0 commit comments

Comments
 (0)