worldbank / DECAT_Space2Stats

https://worldbank.github.io/DECAT_Space2Stats/
Other
1 stars 2 forks source link

Feature/cd #78

Closed zacharyDez closed 1 week ago

zacharyDez commented 1 month ago

Add Staging Environment Variable and Setup Continuous Deployment for Staging and Production

What I Changed:

How to Test It:

  1. Testing the Staging Environment:

    • Create or update a pull request to the main branch.
    • Verify that the staging deployment workflow (CD-staging.yml) is triggered.
    • Check the GitHub Actions logs to confirm that the staging deployment is successful and the API is accessible at the staging domain (staging.space2stats.ds.io).
  2. Testing the Production Environment:

    • Wait until merged... @alukach any better ideas?
    • Verify that the production deployment workflow (CD.yml) is triggered.
    • Check the GitHub Actions logs to confirm that the production deployment is successful and the API is accessible at the production domain (space2stats.ds.io).
github-actions[bot] commented 1 week ago

PR Deployment Details: 🚀 PR deployed to https://tlavg0swne.execute-api.us-east-1.amazonaws.com/

alukach commented 1 week ago

I am going to call this 'complete'. My goal had been:

By having tests run on every push but also having preview deployments run after tests, tests would run twice (once for the push, once for the PR sync event).

Instead, I have made it so that tests only run on pushes to main or pushes to branches with PRs.