Skip to content
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

Add: [CDN] code and config to generate required files for CDN #4

Merged
merged 1 commit into from Feb 2, 2020

Conversation

TrueBrain
Copy link
Member

@TrueBrain TrueBrain commented Jan 26, 2020

This includes:

  • index.html: an index file (as S3 / CloudFront / CloudFlare
    cannot do this for us)
  • folders.yaml: to be able to script walking the CDN
  • latest.yaml: a short summary for the latest release of a
    category
  • manifest.yaml: manifest file per release

This can be generated for everything, or only for a single (new)
release. The first is a rebuild, the second is for when a new
release is pushed to the CDN. In the second case the bare minimum
will be done to come to the same result as a full rebuild would
have done.

This requires read access to the S3 via the AWS API.

@TrueBrain TrueBrain force-pushed the cdn_generator branch 4 times, most recently from 05c2ee8 to 29dc97d Compare February 2, 2020 10:48
@TrueBrain TrueBrain marked this pull request as ready for review February 2, 2020 10:48
@TrueBrain TrueBrain force-pushed the cdn_generator branch 2 times, most recently from 47f0d91 to 515b0c7 Compare February 2, 2020 13:01
.github/workflows/testing.yml Show resolved Hide resolved
.github/workflows/update_cdn.yml Outdated Show resolved Hide resolved
.github/workflows/update_cdn.yml Show resolved Hide resolved
cdn/cdn_generator/common_files.py Show resolved Hide resolved
cdn/cdn_generator/directory_listing.py Outdated Show resolved Hide resolved
cdn/cdn_generator/helpers.py Outdated Show resolved Hide resolved
cdn/cdn_generator/helpers.py Outdated Show resolved Hide resolved
This is including the workflow scripts to automate the CDN
generator.

The CDN generator includes:
 - index.html: an index file (as S3 / CloudFront / CloudFlare
               cannot do this for us)
 - folders.yaml: to be able to script walking the CDN
 - latest.yaml: a short summary for the latest release of a
                category
 - manifest.yaml: manifest file per release

This can be generated for everything, or only for a single (new)
release. The first is a rebuild, the second is for when a new
release is pushed to the CDN. In the second case the bare minimum
will be done to come to the same result as a full rebuild would
have done.

This requires read access to the S3 via the AWS API.
@TrueBrain TrueBrain merged commit 816bf47 into OpenTTD:master Feb 2, 2020
@TrueBrain TrueBrain deleted the cdn_generator branch February 2, 2020 15:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants