Skip to content
Open
Show file tree
Hide file tree
Changes from 3 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
19 changes: 15 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,9 @@ 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.
repo_name="mit-learn",
dockerfile_path="frontends/main/Dockerfile.web",
purge_fastly_cache=True,
Expand Down Expand Up @@ -437,7 +439,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 +472,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 +494,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