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

ci: add cd and performance improvements #64

Merged
merged 5 commits into from
Sep 22, 2023
Merged

ci: add cd and performance improvements #64

merged 5 commits into from
Sep 22, 2023

Conversation

CharlieC3
Copy link
Member

@CharlieC3 CharlieC3 commented Sep 21, 2023

Closes https://github.com/hirosystems/devops/issues/1341

  • Enables a pipeline to deploy into a dev, staging, and production environment much like the Explorer.
  • Each deployment to an environment is guarded by a manual approval gate. When approval is received, the pipeline will continue with the deployment to the targeted environment, then wait at the next approval gate.
    • Currently only @MicaiahReid and @lgalabru have permissions to approve deployments into an environment, but anyone with admin permissions can configure this here.
  • Significantly reduces build time to <10 minutes at best by leveraging GH Actions cache and cutting out arm64 builds.
    • GH Actions runners use an amd64 CPU arch, so any arm64 Docker images must be built in an emulator which is notoriously slow.
  • Adds concurrency definition to auto-cancel GH action runs on the same branch or PR.
  • Updates many GH actions to their latest version

@CharlieC3 CharlieC3 self-assigned this Sep 21, 2023
@CharlieC3 CharlieC3 temporarily deployed to Development September 21, 2023 23:13 — with GitHub Actions Inactive
Copy link
Contributor

@MicaiahReid MicaiahReid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Neat!

@CharlieC3 CharlieC3 temporarily deployed to Staging September 22, 2023 14:18 — with GitHub Actions Inactive
@CharlieC3
Copy link
Member Author

CharlieC3 commented Sep 22, 2023

@MicaiahReid I forgot to mention, deployment to the dev and staging environments will auto-approve when a new release is published -- so most commits/merges to main. And deployments to prod are restricted to pipelines where a new release is published. There is another GH actions workflow I need to add for rollback functionality, but that can come in another PR.

@CharlieC3 CharlieC3 merged commit ddb9ca2 into develop Sep 22, 2023
16 checks passed
@CharlieC3 CharlieC3 deleted the ci/add-cd branch September 22, 2023 15:11
@blockstack-devops
Copy link

🎉 This PR is included in version 1.1.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants