Skip to content
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 20 additions & 4 deletions src/ol_concourse/pipelines/infrastructure/k8s_apps/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,14 @@ def set_repo_name(self) -> "AppPipelineParams":
"mitxonline": AppPipelineParams(app_name="mitxonline", build_target="production"),
"mit-learn-nextjs": AppPipelineParams(
app_name="mit-learn-nextjs",
build_target="build_skip_yarn",
# No build_target: use the default `runner` stage, which bakes `yarn build`
# into the Docker image via `output: "standalone"` in next.config.js.
#
# NEXT_PUBLIC_* values are injected at runtime from Kubernetes env vars.
# Phase 3c Option A (per-env build args from Vault) OR Option B
# (next-runtime-env migration) must be completed before removing the
# Kubernetes build Job in __main__.py (Phase 3d). Until then, deploy
# Phase 3b and Phase 3d together as a single Pulumi update.
Comment thread
blarghmatey marked this conversation as resolved.
Outdated
repo_name="mit-learn",
dockerfile_path="frontends/main/Dockerfile.web",
purge_fastly_cache=True,
Expand Down Expand Up @@ -437,7 +444,10 @@ def build_app_pipeline(app_name: str) -> Pipeline:
path="sh",
args=[
"-exc",
f"""curl -H "Fastly-Key: ((fastly.fastly_api_token))" -H "Accept: application/json" -i -X POST "https://api.fastly.com/service/((fastly.{pipeline_parameters.fastly_service_prefix}service_id_ci))/purge_all" """,
# Purge only HTML pages (tagged with surrogate key "html-pages").
# /_next/static/ assets are content-addressed and immutable —
# purging them causes missing-chunk errors during rolling deployments.
f"""curl -H "Fastly-Key: ((fastly.fastly_api_token))" -H "Accept: application/json" -i -X POST "https://api.fastly.com/service/((fastly.{pipeline_parameters.fastly_service_prefix}service_id_ci))/purge/html-pages" """,
],
Comment thread
blarghmatey marked this conversation as resolved.
),
),
Expand Down Expand Up @@ -467,7 +477,10 @@ def build_app_pipeline(app_name: str) -> Pipeline:
path="sh",
args=[
"-exc",
f"""curl -H "Fastly-Key: ((fastly.fastly_api_token))" -H "Accept: application/json" -i -X POST "https://api.fastly.com/service/((fastly.{pipeline_parameters.fastly_service_prefix}service_id_qa))/purge_all" """,
# Purge only HTML pages (tagged with surrogate key "html-pages").
# /_next/static/ assets are content-addressed and immutable —
# purging them causes missing-chunk errors during rolling deployments.
f"""curl -H "Fastly-Key: ((fastly.fastly_api_token))" -H "Accept: application/json" -i -X POST "https://api.fastly.com/service/((fastly.{pipeline_parameters.fastly_service_prefix}service_id_qa))/purge/html-pages" """,
],
),
),
Expand All @@ -486,7 +499,10 @@ def build_app_pipeline(app_name: str) -> Pipeline:
path="sh",
args=[
"-exc",
f"""curl -H "Fastly-Key: ((fastly.fastly_api_token))" -H "Accept: application/json" -i -X POST "https://api.fastly.com/service/((fastly.{pipeline_parameters.fastly_service_prefix}service_id_production))/purge_all" """,
# Purge only HTML pages (tagged with surrogate key "html-pages").
# /_next/static/ assets are content-addressed and immutable —
# purging them causes missing-chunk errors during rolling deployments.
f"""curl -H "Fastly-Key: ((fastly.fastly_api_token))" -H "Accept: application/json" -i -X POST "https://api.fastly.com/service/((fastly.{pipeline_parameters.fastly_service_prefix}service_id_production))/purge/html-pages" """,
],
),
),
Expand Down
Loading