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: make PR surge deployments work with both site and test #713

Merged
merged 2 commits into from
May 22, 2024

Conversation

tbouffard
Copy link
Member

@tbouffard tbouffard commented May 22, 2024

This was not working as the 2 workflow used to deployed called the same reusable workflow that deployed to the same URL for the 2 environments. This was because the URL is computed using the job id of the reusable workflow.
So for "test" deployment, duplicate the logic of the reusable workflow to have a dedicated URL.

In the "deploy" reusable workflow, use a shorter job id. It is used to compute the URL of all deployments. A shorter name ensure that we don't try to generate a too large URL subdomain.

The PR comment relative to the changes will be managed by a dedicated workflow in the future for a better separation of concerns, to simplify the maintenance and to make things more explicit. So remove the related steps (that was still a work in progress) from the reusable workflow in charge of the deployment.

Covers #686

This was not working as the 2 workflow used to deployed called the same reusable workflow that
deployed to the same URL for the 2 environments. This was because the URL is computed using the job
id of the reusable workflow.
So for "test" deployment, duplicate the logic of the reusable workflow to have a dedicated URL.

In the "deploy" reusable workflow, use a shorter job id. It is used to compute the URL of all
deployments. A shorter name ensure that we don't try to generate a too large URL subdomain.

The PR comment relative to the changes will be managed by a dedicated workflow in the future for a
better separation of concerns, to simplify the maintenance and to make things more explicit.
So remove the related steps (that was still a work in progress) from the reusable workflow in charge
of the deployment.
Copy link

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

Copy link
Contributor

@benjaminParisel benjaminParisel left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@benjaminParisel benjaminParisel merged commit 6160a24 into master May 22, 2024
2 checks passed
@benjaminParisel benjaminParisel deleted the ci/pr_deploy_both_test_and_site branch May 22, 2024 09:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants