Skip to content

Conversation

@Tomdango
Copy link
Contributor

This adds new environments that get spun up when a pull request is opened.
The environment is updated every time the pull request is synchronised (updated).

When an environment is created or updated, a comment is added to the pull request with the latest deployed commit hash and the URL of the environment.

If an environment deploy fails, a comment should be added to the pull request with details of the run.

If the pull request is closed, the environment will be destroyed. This will take precedence over any create/update jobs in progress and will cancel those jobs if running.

If the pull request is reopened, the environment is recreated.

@github-actions
Copy link

💥 Something went wrong while deploying the pull request environment.
Check Output Logs

@github-actions
Copy link

🚀 PR environment successfully deployed.
Commit Hash: d04cbb2957e76cbb2a37dbc8c659e3b00abb50bb
URL: https://nrl633-e41823.api.record-locator.dev.national.nhs.uk/

@sonarqubecloud
Copy link

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@github-actions
Copy link

🚀 PR environment successfully deployed.
Commit Hash: 1d47eafe4d3017e36bc199de6fe681c3ba0864c1
URL: https://nrl633-e41823.api.record-locator.dev.national.nhs.uk/

Copy link
Contributor

@mattdean3-nhs mattdean3-nhs left a comment

Choose a reason for hiding this comment

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

Worked a treat for me 👏 nice work!!!

Only thing I spotted was a warning in the action that a Terraform output.json file is not found but, given we're considering dropping the Terraform artifacts from the build, this should be fine left as is.

@Tomdango Tomdango merged commit 1ead1cc into develop Apr 12, 2024
@Tomdango Tomdango deleted the feature/thju1-NRL-633-persistentPREnvironments branch April 12, 2024 12:10
@github-actions
Copy link

💥 Something went wrong while destroying the pull request environment.
Check Output Logs

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