ci: add deployment pipeline following bcit-tlu org patterns - #1
Merged
Conversation
- Rewrite Dockerfile with OCI labels pointing to bcit-tlu org - Replace nginx config with standardized probe filtering, JSON logging, health endpoints, gzip static serving, and cache headers - Create Helm chart (Chart.yaml, values.yaml, templates) matching sugar-suite/course-workload-estimator patterns - Add CI/CD workflows: ci.yaml (helm-lint + OCI build + chart publish), release-please.yaml, helm-publish.yaml, release-retag.yaml, pr-title-lint.yaml - Add release-please config (simple strategy) and manifest - Deactivate legacy bcit-ltc build-and-push-app.yaml workflow - Add AGENTS.md, shell.nix, VERSION, CHANGELOG.md - Update .envrc, docker-compose.yml, README.md for new org Co-Authored-By: kyle_hunter@bcit.ca <kyle_hunter@bcit.ca>
Contributor
Author
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
- Pin squidfunk/mkdocs-material to digest for reproducible builds - Add security headers (X-Content-Type-Options, X-Frame-Options, Referrer-Policy) - Add error_page 404 /404.html for branded 404 page - Remove duplicate docs/assets/randomize.jpg (randomize.png is used) - Update .devcontainer name from 'review' to 'qcon-guide' Co-Authored-By: kyle_hunter@bcit.ca <kyle_hunter@bcit.ca>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Migrates qcon-guide from the legacy
bcit-ltcorg workflow to thebcit-tludeployment strategy, producing a fully working CI/CD pipeline, Helm chart, and release automation matching the patterns used bysugar-suiteandcourse-workload-estimator.Changes
Dockerfile
bcit-tluorgWORKDIRand cleanCOPYordering matching org conventionssquidfunk/mkdocs-materialto a specific digest for reproducible buildsconf.d/default.conf— rewritten from scratch:json_analyticslog format andstub_statusendpointmapdirectives (log only failing kube-probes)gzip_static on/gzip_vary onfor precompressed assetsmust-revalidatefor HTMLX-Content-Type-Options,X-Frame-Options,Referrer-Policyerror_page 404 /404.htmlfor branded error pages/healthz,/healthz/startup,/healthz/ready)Helm chart (
charts/):Chart.yamlwithx-release-please-versionannotationvalues.yamlwith image, probes, resources, zoneAntiAffinity_helpers.tpl,deployment.yaml,service.yaml,ingress.yaml,serviceaccount.yamlCI/CD workflows (
.github/workflows/):ci.yaml— helm-lint + OCI build viabcit-tlu/.githubreusable workflow + chart publish on mainrelease-please.yaml— automated versioning with stalerelease-asguardhelm-publish.yaml— release-time chart OCI publish with Cosign signingrelease-retag.yaml— release image retagging with highest-stable detectionpr-title-lint.yaml— conventional commit enforcementRelease automation:
release-please-config.json(simple strategy, no component).release-please-manifest.jsonseeded at0.1.0VERSIONandCHANGELOG.mdHousekeeping:
build-and-push-app.yaml→.inactiveAGENTS.md,shell.nix.envrc,docker-compose.yml,README.mddocs/assets/randomize.jpg(only.pngis referenced).devcontainername fromreviewtoqcon-guideReview & Testing Checklist for Human
charts/values.yamlmatch desired resource limits and image repository path (ghcr.io/bcit-tlu/qcon-guide/qcon-guide)helm-lintandbuild-qcon-guidejobs should both succeed on this PRqcon-guideinbcit-tlu/vaultconfig.auto.tfvarsappslist and runterraform applybefore Flux deploymentNotes
mkdocs.ymlsite_urlstill referencesqcon-guide.ltc.bcit.ca— update this once the new ingress domain is confirmedstableoverlay for production can be added to flux-fleet later when readyLink to Devin session: https://app.devin.ai/sessions/d5a39e0d582d45718040cf3cd0b64895
Requested by: @kphunter