{"id":19644320,"url":"https://github.com/ampproject/cdn-configuration","last_synced_at":"2025-06-12T19:39:02.386Z","repository":{"id":37098906,"uuid":"433920657","full_name":"ampproject/cdn-configuration","owner":"ampproject","description":"Configuration settings for AMP Project CDNs","archived":false,"fork":false,"pushed_at":"2025-06-11T05:32:14.000Z","size":1641,"stargazers_count":8,"open_issues_count":18,"forks_count":12,"subscribers_count":26,"default_branch":"main","last_synced_at":"2025-06-11T06:33:08.119Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ampproject.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2021-12-01T17:23:19.000Z","updated_at":"2025-06-10T03:05:49.000Z","dependencies_parsed_at":"2023-02-17T09:45:53.378Z","dependency_job_id":"a6f16f18-c206-4904-bafd-7b22ae061138","html_url":"https://github.com/ampproject/cdn-configuration","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ampproject/cdn-configuration","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ampproject%2Fcdn-configuration","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ampproject%2Fcdn-configuration/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ampproject%2Fcdn-configuration/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ampproject%2Fcdn-configuration/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ampproject","download_url":"https://codeload.github.com/ampproject/cdn-configuration/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ampproject%2Fcdn-configuration/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259520283,"owners_count":22870413,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-11T14:26:41.290Z","updated_at":"2025-06-12T19:39:02.340Z","avatar_url":"https://github.com/ampproject.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cdn-configuration\n\n## Overview\n\nThis repo stores the AMP versions that are being served by AMP CDNs in [`configs/versions.json`](./configs/versions.json). It also hosts the deployment and patching workflows for the release on-duty engineer[^note].\n\nThe following AMP CDNs are managed by this repository:\n\n- [`ampjs.org`](https://ampjs.org) (OpenJS Foundation owned, Cloudflare hosted)\n- [`cdn.ampproject.org`](https://cdn.ampproject.org) (Google owned and hosted)\n\nThis README contains instructions for the releases on-duty engineer. To learn more about AMP releases, please see release documation at https://github.com/ampproject/amphtml/tree/main/docs.\n\n[^note]: These workflows replace the actions on the internal release dashboard as part of the transition to open source.\n\n## Deploying and promoting a release\n\nNightly releases are cut, built and deployed automatically.\n\nReleases are promoted to channels by updating [`configs/versions.json`](./configs/versions.json) in a PR. These PRs are created on a schedule and assigned to the on-duty engineer, to be approved and merged.\n\nOnce merged, the CDNs will pick up the new versions. It takes about 15-30 minutes for [`cdn.ampproject.org`](https://cdn.ampproject.org) to take effect, and about 1 minute for [`ampjs.org`](https://ampjs.org).\n\nAs a summary, promotions run on a weekly schedule:\n\n|           | `nightly` | `beta/experimental` | `stable` | `lts` |\n| --------- | :-------: | :-----------------: | :------: | :---: |\n| Monday    |    🌙     |                     |          | 🚀 \\* |\n| Tuesday   |    🌙     |     🚀 `opt-in`     |    🚀    |       |\n| Wednesday |    🌙     |    🚀 `traffic`     |          |       |\n| Thursday  |    🌙     |                     |          |       |\n| Friday    |    🌙     |                     |          |       |\n| Saturday  |           |                     |          |       |\n| Sunday    |           |                     |          |       |\n\n_\\* lts promotions occur every 2nd Monday of the month._\n\nFor more information about schedules and channels, see https://github.com/ampproject/amphtml/blob/main/docs/release-schedule.md.\n\n## Cherry-picking a release\n\nTo cherry-pick a release, run the [`Cherry-pick a release`](https://github.com/ampproject/cdn-configuration/actions/workflows/cherry-pick.yml) workflow. It asks for the AMP version to fix, as well as the commit shas to cherry-pick. For multiple commits, separate the shas with a space.\n\nHow it works: the workflow pushes a new branch to amphtml. CircleCI will pick up that branch and build the release. Once built and uploaded to [`ampjs.org`](https://ampjs.org), the CircleCI job will trigger the promote workflow.\n\nIt takes about 30 minutes from triggering the cherry-pick to creating a promote PR. The PR should promote the cherry-picked AMP version in all the channels that had the faulty AMP version. To complete the cherry-pick, approve and merge the PR.\n\nLike regular promotions, it takes about 1 minute once merged for [`ampjs.org`](https://ampjs.org) to begin serving the patched release. However, [`cdn.ampproject.org`](https://cdn.ampproject.org) takes between 30 and 90 minutes.\n\nTo resolve merge conflicts, cherry-pick the release locally:\n\n1. check out the tag: `git checkout ${amp_version}`\n2. switch to a new branch: `git switch -c amp-release-${amp_version}-fix`  \n   _(make sure that the branch starts with `amp-release-`)_\n3. cherry-pick the fix: `git cherry-pick -x ${shas}`  \n   _(make sure to include the `-x` flag)_\n4. resolve any merge conflicts\n5. push branch to remote: `git push https://github.com/ampproject/amphtml.git`\n\n## Rolling back a release\n\nTo roll back a release, find the promote PR and revert it. Do not modify [`configs/versions.json`](./configs/versions.json) manually.\n\nLike regular promotions, it should take between 15-30 minutes for the roll back to take effect on [`cdn.ampproject.org`](https://cdn.ampproject.org), and 1 minute on [`ampjs.org`](https://ampjs.org).\n\n## Workflow failures\n\nIf any of the workflows fail, the on-duty engineer will be notified by a GitHub issue. Please resolve the failures in order to stick to the promotion schedule as close as possible.\n\nPromotion workflows can be triggered manually from the [Actions](https://github.com/ampproject/cdn-configuration/actions) tab on this repository. A successful run will result in a PR.\n\n## Permissions\n\nTo request access to this repo, reach out to [`@ampproject/wg-infra`](https://github.com/orgs/ampproject/teams/wg-infra).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fampproject%2Fcdn-configuration","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fampproject%2Fcdn-configuration","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fampproject%2Fcdn-configuration/lists"}