Closed zacharyDez closed 1 week ago
PR Deployment Details: 🚀 PR deployed to https://tlavg0swne.execute-api.us-east-1.amazonaws.com/
I am going to call this 'complete'. My goal had been:
tests
run on every pushBy 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.
Add Staging Environment Variable and Setup Continuous Deployment for Staging and Production
What I Changed:
Added
STAGE
Environment Variable:STAGE
environment variable to differentiate between deployment environments (staging
andprod
).STAGE
variable is dynamically used to deploy the correct infrastructure based on the target environment.Set Up Separate Continuous Deployment Workflows:
CD.yml
workflow now deploys to the production environment only when a commit is pushed to themain
branch.CD-staging.yml
) was created to automatically deploy changes to the staging environment on pull requests targeting themain
branch.How to Test It:
Testing the Staging Environment:
main
branch.CD-staging.yml
) is triggered.staging.space2stats.ds.io
).Testing the Production Environment:
CD.yml
) is triggered.space2stats.ds.io
).