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 Contextual AWS Deployment to GitHub Actions #10

Merged
merged 46 commits into from
Dec 21, 2022
Merged

Conversation

kj4ezj
Copy link
Contributor

@kj4ezj kj4ezj commented Dec 21, 2022

From devrel issue 135, this pull request adds steps to the CICD pipeline for the DevHub frontend that determine whether the current build is on a branch or tag, then deploys to production for tags or does a "dry run" deployment for branch builds (base or feature). The deployment syncs the website objects to the bucket, tags them, asks the CDN to update edge nodes, then waits until that finishes (or times out after ten minutes). If the CICD system returns EXIT_SUCCESS, the CDN should be serving the latest site version worldwide.

I also added code to push the frontend package.json with some build metadata to learn.eosnetwork.com/package.json. This will make it easier to determine which version of the website is being served by CDN edges if there are deployment issues.

curl -fsSL 'https://learn.eosnetwork.com/package.json' | jq '.git'

See Also

@netlify
Copy link

netlify bot commented Dec 21, 2022

Deploy Preview for helpful-bavarois-5f3a4b ready!

Name Link
🔨 Latest commit 702b4d6
🔍 Latest deploy log https://app.netlify.com/sites/helpful-bavarois-5f3a4b/deploys/63a2bee1fe8c3200097476c6
😎 Deploy Preview https://deploy-preview-10--helpful-bavarois-5f3a4b.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@kj4ezj
Copy link
Contributor Author

kj4ezj commented Dec 22, 2022

I ran into an issue here where "dry run" support in the AWS CLI is inconsistent.

See Also:

  • aws-sdk issue 393 - aws s3api put-object-acl, etc do not have --dryrun option
  • aws-sdk issue 1965 - Add global --dry-run parameter

@kj4ezj kj4ezj linked an issue Dec 22, 2022 that may be closed by this pull request
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.

DevHub Frontend CICD
1 participant