Skip to content

Commit f0d8ff3

Browse files
authored
Merge pull request #136 from cmu-delphi/update-ci-build-and-deploy
Update CI build process
2 parents 9642872 + 12c5bb1 commit f0d8ff3

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

.github/workflows/build-and-deploy.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ jobs:
66
runs-on: ubuntu-latest
77
# CI/CD will run on these branches
88
if: >
9-
github.ref == 'refs/heads/master' ||
9+
github.ref == 'refs/heads/main' ||
10+
github.ref == 'refs/heads/staging' ||
1011
github.ref == 'refs/heads/development'
1112
strategy:
1213
matrix:

README.md

+7-1
Original file line numberDiff line numberDiff line change
@@ -200,9 +200,15 @@ Each environment is essentially a bunch of different services all governed by `d
200200

201201
### Basic workflow
202202

203-
- A PR merged to either `development` or `master` will trigger CI to build container images that are then tagged (based on the branch name and ":latest" respectively) and stored in our GitHub Packages container image repository.
203+
- A PR merged to either `development`, `staging`, or `main` will trigger CI to build container images that are then tagged with the branch name (or ":latest", in the cast of `main`), and stored in our GitHub Packages container image repository.
204204
- CI triggers a webhook that tells the host systems to pull and run new container images and restart any services that have been updated.
205205

206+
As a developer, your path to getting changes into production should be something like this:
207+
208+
- Source your working branch from `development`, do work, PR and merge when complete
209+
- PR and merge to `staging` in order to get your changes deployed to https://staging.delphi.cmu.edu/signals for review
210+
- PR and merge to `main` to go to production
211+
206212
**IMPORTANT!** - The CI/CD process uses Docker Compose to build the specific container images that will be used in external environments. Success of the the build-and-deploy workflow is dependent on constructed services in `docker-compose.yaml`. If considering making changes there, please have a PR reviewed by devops folks :pray: :pray: :pray:
207213

208214
### Control of the deployed environment

0 commit comments

Comments
 (0)