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

[Issue: 1291] Update cd-* scripts to deploy staging #1821

Merged
merged 4 commits into from
Apr 30, 2024

Conversation

aplybeah
Copy link
Contributor

@aplybeah aplybeah commented Apr 24, 2024

Summary

Fixes #1291
Fixes #1549

Time to review: 1 min

Changes proposed

  • add staging input to cd-api and cd-frontend files

Context for reviewers

The cd files need to be configured to also deploy the staging environment

Additional information

N/A

chouinar
chouinar previously approved these changes Apr 24, 2024
@@ -20,6 +20,7 @@ on:
type: choice
options:
- dev
- staging
Copy link
Collaborator

Choose a reason for hiding this comment

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

Unfortunately adding staging here won't change much. It just makes staging available as an option, but doesn't actually start deploying staging. The line you want to change is down below...

@@ -20,6 +20,7 @@ on:
type: choice
options:
- dev
- staging
- prod

Copy link
Collaborator

Choose a reason for hiding this comment

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

...the line you want to change is this one down below

environment: ${{ inputs.environment || (github.event_name == 'release' && 'prod') || 'dev' }}

change it to (psuedo-code)

environment: ${{ inputs.environment || (github.event_name == 'release' && 'prod') || ['dev', 'staging'] }}

Copy link
Collaborator

Choose a reason for hiding this comment

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

You'll need to do this for the analytics package as well, of course.

@@ -20,6 +20,7 @@ on:
type: choice
Copy link
Collaborator

Choose a reason for hiding this comment

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

You'll need to change run-name: above as well

Copy link
Collaborator

@coilysiren coilysiren left a comment

Choose a reason for hiding this comment

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

This looks right 👍🏼 I would just recommend testing it before merging

@aplybeah aplybeah merged commit a385b89 into main Apr 30, 2024
43 of 45 checks passed
@aplybeah aplybeah deleted the alsia/update-cd-scripts branch April 30, 2024 21:18
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.

[Task]: Delivery Dashboard - Deploy application with CI/CD [Task]: Update cd-* scripts to deploy staging
3 participants