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

[DRAFT] Automated Preprod Deploy workflow #1845

Merged
merged 6 commits into from
Nov 27, 2024
Merged

Conversation

ballPointPenguin
Copy link
Contributor

@ballPointPenguin ballPointPenguin commented Nov 23, 2024

See Deploy README

Changes

  • Creates a ./deploy/ folder with a basic python project for deploy concerns
  • Rewrites the clojure/babashka deploy-static-assets.clj as python deploy-static-assets.py
  • Add deploy/README.md with general instructions for deployment
  • Create a github workflow deploy-preprod.yml file (untested), to be triggered on updates to edge
  • Remove ignored ACL settings from JSON Headers

Needs

Github Secrets to add:

  • AWS_ROLE_ARN
  • HEROKU_API_KEY
  • HEROKU_EMAIL

(possibly others)

Need to ensure that the environment is complete for building static assets on github

Works Now

Running python deploy/deploy-static-assets.py --bucket edge.static-assets.pol.is works nicely (provided you are authenticated with aws sso).

Copy link
Collaborator

@tevko tevko left a comment

Choose a reason for hiding this comment

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

This is awesome - I'm assuming the readme instructions are just in case a user would want to do this manually?

@ballPointPenguin
Copy link
Contributor Author

This is awesome - I'm assuming the readme instructions are just in case a user would want to do this manually?

yes exactly

@tevko
Copy link
Collaborator

tevko commented Nov 26, 2024

@ballPointPenguin secrets added

@ballPointPenguin ballPointPenguin marked this pull request as ready for review November 27, 2024 09:46
@ballPointPenguin ballPointPenguin merged commit 59c72ae into edge Nov 27, 2024
4 checks passed
@ballPointPenguin ballPointPenguin deleted the br/preprod-cd branch November 27, 2024 09:53
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.

2 participants