You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .controlplane/readme.md
+29Lines changed: 29 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -123,3 +123,32 @@ cpflow build-image -a $APP_NAME --commit ABCD
123
123
### `entrypoint.sh`
124
124
- waits for Postgres and Redis to be available
125
125
- runs `rails db:prepare` to create/seed or migrate the database
126
+
127
+
## CI Automation, Review Apps and Staging
128
+
129
+
_Note, some of the URL references are internal for the ShakaCode team._
130
+
131
+
Review Apps (deployment of apps based on a PR) are done via Github Actions.
132
+
133
+
The review apps work by creating isolated deployments for each branch through this automated process. When a branch is pushed, the action:
134
+
135
+
1. Sets up the necessary environment and tools
136
+
2. Creates a unique deployment for that branch if it doesn't exist
137
+
3. Builds a Docker image tagged with the branch's commit SHA
138
+
4. Deploys this image to Control Plane with its own isolated environment
139
+
140
+
This allows teams to:
141
+
- Preview changes in a production-like environment
142
+
- Test features independently
143
+
- Share working versions with stakeholders
144
+
- Validate changes before merging to main branches
145
+
146
+
The system uses Control Plane's infrastructure to manage these deployments, with each branch getting its own resources as defined in the controlplane.yml configuration.
147
+
148
+
149
+
### Workflow for Developing Github Actions for Review Apps
150
+
151
+
1. Create a PR with changes to the Github Actions workflow
152
+
2. Make edits to file such as `.github/actions/deploy-to-control-plane/action.yml`
153
+
3. Run a script like `ga .github && gc -m fixes && gp` to commit and push changes (ga = git add, gc = git commit, gp = git push)
154
+
4. Check the Github Actions tab in the PR to see the status of the workflow
0 commit comments