-
Notifications
You must be signed in to change notification settings - Fork 912
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
Publish Docs to Netlify and AWS #14767
base: master
Are you sure you want to change the base?
Conversation
Pull Request Test Coverage Report for Build 12008405860Warning: This coverage report may be inaccurate.This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
Details
💛 - Coveralls |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work!
Generally appears fine. I left a few comments/questions about permissions. The .yml is conflicted now, sadly, I hope it's not a tough merge. Also the spellchecker wants a few words added to expect.txt.
I have set the relevant variables/secrets meanwhile.
When applied, this commit allows for the documentation to be published to Netlify and AWS based on the secrets and variables present (see the comment in documentation.yml)
…ding with GHA instead of letting netlify build things
I have rebased my fork on top of the current master and removed the Netlify PR handling |
the spell checker is unhappy (needs a few words in |
…d pattern for twitter links to patterns.txt and exempts website fonts and img directory from binary check
Let's merge this on monday! |
Short description
When applied, this change allows for the documentation to be published to Netlify and AWS based on the secrets and variables present (see the comment in documentation.yml)
Variables:
PUBLISH_DOCS_TO_AWS: Set to 'true' to enable publishing to AWS
PUBLISH_DOCS_TO_NETLIFY: Set to 'true' to enable publishing to Netlify
PUBLISH_DOCS_TO_WEB1: Set to 'true' to enable publishing to Web1
PUBLISH_PRS_TO_NETLIFY: Set to 'true' to publish PR previews to Netlify
AWS_REGION: AWS region for S3 and CloudFront
AWS_S3_BUCKET_DOCS: S3 bucket name for documentation
AWS_CLOUDFRONT_DISTRIBUTION_ID_DNSDIST: CloudFront distribution ID for DNSdist docs
AWS_CLOUDFRONT_DISTRIBUTION_ID_DOCS: CloudFront distribution ID for PowerDNS docs
NETLIFY_SITE_ID_DOCS: Netlify site ID for PowerDNS docs
NETLIFY_SITE_ID_DNSDIST: Netlify site ID for DNSdist docs
REC_DOCS_DIR: Directory for Recursor docs on Web1
AUTH_DOCS_DIR: Directory for Authoritative Server docs on Web1
WEB1_HOSTKEY: SSH host key for Web1
DOCS_HOST: Hostname for documentation server
Secrets:
Checklist
I have:
Notes
I'm not sure I refactored the code that uploads to web1 correctly and couldn't test that path