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

CAS-1263 - Implement rolling deployments for the API service #1149

Merged
merged 1 commit into from
May 9, 2023

Conversation

tim-s-ccs
Copy link
Collaborator

@tim-s-ccs tim-s-ccs commented Apr 24, 2023

JIRA link (if applicable)

CAS-1263

Change description

As part of this commit I have updated the Travis config so that it uses the CloudFoundry deployment provider to deploy the applications to the various environments. What’s more, I have enabled rolling deployments so there is no downtime when we do deployments. Importantly, this means that if the new code won’t deploy, we will not take down the existing code deployment (which is what currently happens).

Now that we don’t use terraform for deployments, this code can (or should) be moved to a separate repository that looks after the CAS infrastructure.

Note, I would have preferred to have written the deployment script once and then use some conditional logic to determine which environment to deploy to. However, as not all deployments are linked to static branches, I have had to split the deployment parts up to manage the releases to Sandbox (2 and 3).

Does this PR introduce a breaking change?

  • Yes
  • No

Before creating a pull request make sure that:

  • commit messages are meaningful and follow good commit message guidelines
  • README and other documentation has been updated / added (if needed)
  • tests have been updated / new tests has been added (if needed)

@tim-s-ccs tim-s-ccs force-pushed the feature/CAS-1263-deploy-with-travis branch 3 times, most recently from 19295b6 to 4e7befc Compare April 28, 2023 11:26
@tim-s-ccs tim-s-ccs marked this pull request as ready for review April 28, 2023 11:28
@tim-s-ccs tim-s-ccs force-pushed the feature/CAS-1263-deploy-with-travis branch 2 times, most recently from 13dca89 to aae7c78 Compare May 2, 2023 07:40
…es the CloudFoundry deployment provider to deploy the applications to the various environments. What’s more, I have enabled rolling deployments so there is no downtime when we do deployments. Importantly, this means that if the new code won’t deploy, we will not take down the existing code deployment (which is what currently happens).

Now that we don’t use terraform for deployments, this code can (or should) be moved to a separate repository that looks after the CAS infrastructure.

Note, I would have preferred to have written the deployment script once and then use some conditional logic to determine which environment to deploy to. However, as not all deployments are linked to static branches, I have had to split the deployment parts up to manage the releases to Sandbox (2 and 3).
@codeclimate
Copy link

codeclimate bot commented May 9, 2023

Code Climate has analyzed commit f82d5da and detected 0 issues on this pull request.

View more on Code Climate.

@tim-s-ccs tim-s-ccs merged commit 270aa22 into develop May 9, 2023
4 checks passed
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.

None yet

2 participants