Skip to content

Commit 3232534

Browse files
ClupaimaplefoxgitUmedaRanulugeIntern24601
committed
chore(deploy): T2 2026 deploy and dev stack updates
Brings the T2 2026 deploy work from ontrack-features-t2-2026 11.0.x (reviewed and merged work) onto thoth-tech 11.0.x. Co-authored-by: maplefoxgit <s223932052@deakin.edu.au> Co-authored-by: UmedaRanuluge <umedakr@gmail.com> Co-authored-by: Maple 'Ryan' Fox <s223932052@deakin.edu.au> Co-authored-by: jerickson <joshuae.data@gmail.com>
1 parent 5890596 commit 3232534

61 files changed

Lines changed: 7145 additions & 610 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.github/workflows/build-dev-container.yml‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,44 +25,44 @@ jobs:
2525
context: ./doubtfire-api/
2626
steps:
2727
- name: Checkout code
28-
uses: actions/checkout@v4
28+
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
2929
with:
3030
submodules: recursive
3131
- name: Setup meta for development image
3232
id: docker_meta
33-
uses: docker/metadata-action@v5
33+
uses: docker/metadata-action@c299e40c65443455700f0fdfc63efafe5b349051 # v5
3434
with:
3535
images: ${{ matrix.image }}
3636
tags: |
3737
type=semver,pattern={{major}}.{{minor}}
3838
- name: Login to DockerHub
39-
uses: docker/login-action@v3
39+
uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3
4040
if: github.event_name != 'pull_request'
4141
with:
4242
username: ${{ secrets.DOCKERHUB_USERNAME }}
4343
password: ${{ secrets.DOCKERHUB_TOKEN }}
4444
- name: Set up QEMU
45-
uses: docker/setup-qemu-action@v3
45+
uses: docker/setup-qemu-action@c7c53464625b32c7a7e944ae62b3e17d2b600130 # v3
4646
- name: Set up Docker
4747
id: buildx
48-
uses: docker/setup-buildx-action@v3
48+
uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3
4949
- name: Cache Docker layers
50-
uses: actions/cache@v3
50+
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4
5151
with:
5252
path: /tmp/.buildx-cache-app
5353
key: ${{ runner.os }}-buildx-app-${{ github.sha }}
5454
restore-keys: |
5555
${{ runner.os }}-buildx-app
5656
- name: Build and push dev container image
5757
id: docker_build
58-
uses: docker/build-push-action@v6
58+
uses: docker/build-push-action@10e90e3645eae34f1e60eeb005ba3a3d33f178e8 # v6
5959
with:
6060
file: ${{ matrix.dockerfile }}
6161
context: ${{ matrix.context }}
6262
builder: ${{ steps.buildx.outputs.name }}
6363
push: ${{ github.event_name != 'pull_request' }}
6464
tags: ${{ steps.docker_meta.outputs.tags }}
65-
labels: ${{ steps.meta.outputs.labels }}
65+
labels: ${{ steps.docker_meta.outputs.labels }}
6666
platforms: linux/amd64,linux/arm64
6767
cache-from: type=local,src=/tmp/.buildx-cache-app # Reuse cached layers from previous builds.
6868
cache-to: type=local,dest=/tmp/.buildx-cache-app-new,mode=max # Save new cache layers after the build.
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
name: validate-production-compose
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- ".github/workflows/validate-production-compose.yml"
7+
- ".gitmodules"
8+
- ".devcontainer/**"
9+
- "development/**"
10+
- "HANDOVER.md"
11+
- "MIGRATING.md"
12+
- "RELEASING.md"
13+
- "DEPLOYING.md"
14+
- "DESKTOP-PWA.md"
15+
- "doubtfire-api"
16+
- "doubtfire-web"
17+
- "production/**"
18+
push:
19+
branches:
20+
- 11.0.x
21+
paths:
22+
- ".github/workflows/validate-production-compose.yml"
23+
- ".gitmodules"
24+
- ".devcontainer/**"
25+
- "development/**"
26+
- "HANDOVER.md"
27+
- "MIGRATING.md"
28+
- "RELEASING.md"
29+
- "DEPLOYING.md"
30+
- "DESKTOP-PWA.md"
31+
- "doubtfire-api"
32+
- "doubtfire-web"
33+
- "production/**"
34+
35+
permissions:
36+
contents: read
37+
38+
jobs:
39+
validate:
40+
runs-on: ubuntu-latest
41+
timeout-minutes: 5
42+
43+
steps:
44+
- name: Check out repository
45+
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
46+
47+
- name: Test desktop PWA public-asset verification
48+
run: python3 -B production/tests/verify_pwa_test.py
49+
50+
- name: Test release publication and recovery cache controls
51+
run: python3 -B production/tests/publish_release_test.py
52+
53+
- name: Validate production configuration
54+
run: production/tests/validate_test.sh
55+
56+
- name: Verify upload boundaries through the production Nginx template
57+
run: python3 -B production/tests/nginx_upload_test.py
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Validate secret audit tool
2+
on:
3+
pull_request:
4+
paths:
5+
- tools/audit-vapid-secret.py
6+
- tools/tests/test_audit_vapid_secret.py
7+
- .github/workflows/validate-secret-audit.yml
8+
push:
9+
branches: ["11.0.x"]
10+
paths:
11+
- tools/audit-vapid-secret.py
12+
- tools/tests/test_audit_vapid_secret.py
13+
- .github/workflows/validate-secret-audit.yml
14+
permissions:
15+
contents: read
16+
jobs:
17+
synthetic-fixtures:
18+
runs-on: ubuntu-latest
19+
timeout-minutes: 5
20+
steps:
21+
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
22+
- run: python3 -B -m unittest discover -s tools/tests -p 'test_audit_vapid_secret.py'

‎.gitignore‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,16 @@
33
!/data/**/
44
!/data/**/.gitkeep
55
/node_modules/
6+
/.devcontainer/.env
7+
/development/.env
8+
9+
# Production runtime configuration, credentials, and local TLS material.
10+
/production/.env.production
11+
/production/secrets/*
12+
!/production/secrets/.gitkeep
13+
/production/shared-files/aliases
14+
/production/shared-files/msmtprc
15+
/production/*.sql
616

717
# Created by https://www.toptal.com/developers/gitignore/api/macos
818
# Edit at https://www.toptal.com/developers/gitignore?templates=macos

‎CONTRIBUTING.md‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
1-
![Doubtfire Logo](http://puu.sh/lyClF/fde5bfbbe7.png)
21

32
# Contributing to Doubtfire
43

4+
> **Legacy general guide.** For the current 11.0.x combined checkout, source
5+
> revisions and local runtime, follow `RUNNING-LOCALLY.md` and `HANDOVER.md`.
6+
> Do not use `run-api-web.sh`, the bind-mount assumptions, or the
7+
> `development`-branch examples below for this release; they are retained only
8+
> as upstream historical guidance.
9+
510
We welcome additions and extensions to Doubtfire that help progress our goal of supporting student learning through frequent formative feedback and delayed summative assessment.
611

712
This guide provides high-level details on how to contribute to the Doubtfire repositories.

0 commit comments

Comments
 (0)