Repository navigation
Update documentation and installers to use alpha application packages #22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Changes from all commits
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
9124aad
add required
jerrf010 8bac367
add typescript
jerrf010 6e61068
fix some packages
jerrf010 9013684
Update next.config.mjs
jerrf010 7e6b7ee
Delete deploy.yml
jerrf010 0543004
Create deploy.yml
jerrf010 d4d6365
add some structure for danplus
jerrf010 3c671ae
Merge branch 'alpha' of https://github.com/RGSS-CS/documentation into…
jerrf010 e5addcc
fix vulnerabilities
jerrf010 2167ee7
Delete static/.nojekyll
jerrf010 7d21e17
Create nginx.conf
jerrf010 15d63d9
Add AIO_compose.yml for multi-container setup
jerrf010 ff3457a
Create env.txt
jerrf010 cae9533
Update AIO_compose.yml
jerrf010 6b8dd59
Update nginx.conf
jerrf010 9248b45
Update backend image to use 'latest' tag
jerrf010 698cbbc
Update next.js and node.js & react type definitions
DanPlus6 464714f
Added version lock for bun
DanPlus6 bdf9200
Update env.txt
jerrf010 e357e2a
Update README.md
jerrf010 1325a0f
Add CAP environment configuration
jerrf010 6c747c0
Add CAP and Valkey services
jerrf010 80fe180
Update install scripts for all-in-one deployment
jerrf010 36550f6
Fix installer Compose validation setup
jerrf010 6ccd762
Improve installer hash diagnostics
jerrf010 4aa5bf5
Correct pinned Nginx asset hash
jerrf010 10a658d
Smoke-test all installer services
jerrf010 645eb74
Clarify CAP frontend build-time configuration
jerrf010 f6c2395
Update installer backend image and generated environment
jerrf010 ed015bb
Isolate CAP and Valkey on dedicated network
jerrf010 8ec7bf4
Update runtime environment configuration
jerrf010 3a403b2
Fix CAP smoke-test configuration
jerrf010 5dc153a
Potential fix for pull request finding 'CodeQL / Workflow does not co…
jerrf010 43173da
Merge main into alpha and use alpha application images
jerrf010 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,98 @@ | ||
| name: Test installers | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - alpha | ||
| paths: | ||
| - "static/InstScripts/**" | ||
| - ".github/workflows/test-installers.yml" | ||
| pull_request: | ||
| paths: | ||
| - "static/InstScripts/**" | ||
| - ".github/workflows/test-installers.yml" | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| linux: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - name: Check Bash syntax | ||
| run: bash -n static/InstScripts/install.sh | ||
|
|
||
| - name: Validate environment contract | ||
| run: | | ||
| grep -Fq "# CONFIGURABLE SETTINGS" static/InstScripts/env.txt | ||
| grep -Fq "# NON-CONFIGURABLE / AUTO-GENERATED SETTINGS" static/InstScripts/env.txt | ||
| grep -Fq "PUBLIC_MEDIA_BASE_URL=" static/InstScripts/env.txt | ||
| grep -Fq "CAPTCHA_URL=" static/InstScripts/env.txt | ||
| grep -Fq "REVALIDATE_URL=http://frontend:3000/console/revalidate" static/InstScripts/env.txt | ||
| ! grep -Eq "^(FRONTEND_REVALIDATE_URL|NEXT_PUBLIC_CAPTCHA_URL)=" static/InstScripts/env.txt | ||
| grep -Fq "for example: dev.rgsscs.org" static/InstScripts/env.txt | ||
| grep -Fq "for example: https://dev.rgsscs.org" static/InstScripts/env.txt | ||
|
|
||
| - name: Validate all-in-one Compose file | ||
| run: | | ||
| cp static/InstScripts/env.txt static/InstScripts/.env | ||
| docker compose --env-file static/InstScripts/.env -f static/InstScripts/AIO_compose.yml config --quiet | ||
|
|
||
| - name: Confirm installer asset hashes | ||
| working-directory: static/InstScripts | ||
| run: | | ||
| compose_hash="$(sha256sum AIO_compose.yml | cut -d' ' -f1)" | ||
| nginx_hash="$(sha256sum nginx.conf | cut -d' ' -f1)" | ||
| echo "Compose SHA-256: $compose_hash" | ||
| echo "Nginx SHA-256: $nginx_hash" | ||
| grep -Fq "$compose_hash" install.sh | ||
| grep -Fq "$nginx_hash" install.sh | ||
| grep -Fq "$compose_hash" install.ps1 | ||
| grep -Fq "$nginx_hash" install.ps1 | ||
|
|
||
| - name: Start and smoke-test the application stack | ||
| working-directory: static/InstScripts | ||
| timeout-minutes: 10 | ||
| run: | | ||
| cat >> .env <<'EOF' | ||
| SECRET_KEY=ci-secret-key-not-for-production | ||
| SIGNING_KEY=ci-signing-key-not-for-production | ||
| REVALIDATE_SECRET=ci-revalidate-secret | ||
| ADMIN_KEY=ci-admin-key | ||
| DJANGO_SUPERUSER_PASSWORD=ci-superuser-password | ||
| POSTGRES_DB=db | ||
| POSTGRES_USER=db | ||
| POSTGRES_PASSWORD=ci-postgres-password | ||
| EOF | ||
| docker network create internetwork | ||
| docker compose -f AIO_compose.yml up -d --wait | ||
| docker compose -f AIO_compose.yml ps | ||
| curl --fail --retry 10 --retry-delay 3 http://localhost/ | ||
| curl --fail --retry 10 --retry-delay 3 http://localhost:3001/ | ||
|
|
||
| - name: Stop smoke-test stack | ||
| if: always() | ||
| working-directory: static/InstScripts | ||
| run: docker compose -f AIO_compose.yml down --volumes | ||
|
|
||
| windows: | ||
| runs-on: windows-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - name: Check PowerShell syntax | ||
| shell: powershell | ||
| run: | | ||
| $tokens = $null | ||
| $errors = $null | ||
| [System.Management.Automation.Language.Parser]::ParseFile( | ||
| (Resolve-Path "static/InstScripts/install.ps1"), | ||
| [ref]$tokens, | ||
| [ref]$errors | ||
| ) | Out-Null | ||
| if ($errors.Count -gt 0) { | ||
| $errors | Format-List | Out-String | Write-Error | ||
| exit 1 | ||
| } | ||
|
github-advanced-security[bot] marked this conversation as resolved.
Fixed
|
||
File renamed without changes.
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| title: Backend | ||
| sidebarTitle: Backend | ||
| asIndexPage: true | ||
| --- |
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| title: Frontend | ||
| sidebarTitle: Frontend | ||
| asIndexPage: true | ||
| --- |
This file contains hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
| @@ -1,4 +1,3 @@ | ||
| {/* app/page.mdx */} | ||
| # Welcome | ||
| # RGSSCS Org Documentation | ||
|
|
||
| This is the RGSS-CS documentation site. |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.