2021-12-21 17:21:44 +01:00
# Budibase CI Pipelines
2023-12-11 16:04:28 +01:00
Welcome to the Budibase CI pipelines directory. This document details what each of the CI pipelines are for, and come common combinations.
2021-12-21 17:21:44 +01:00
## All CI Pipelines
### Standard CI Build Job (budibase_ci.yml)
2023-09-07 15:27:13 +02:00
2021-12-21 18:44:04 +01:00
Triggers:
2023-09-07 15:27:13 +02:00
2021-12-21 18:44:04 +01:00
- PR or push to master
2021-12-21 17:21:44 +01:00
2023-12-11 16:04:28 +01:00
The standard CI Build job is what runs when you raise a PR to master.
2023-09-07 15:27:13 +02:00
2021-12-21 18:44:04 +01:00
- Installs all dependencies,
2023-09-07 15:27:13 +02:00
- builds the project
2021-12-21 18:44:04 +01:00
- run the unit tests
- Generate test coverage metrics with codecov
2023-09-07 15:27:13 +02:00
- Run the integration tests
2023-12-11 16:04:28 +01:00
- Check that the pro and account portal submodules are pointing to the lastest master head
2021-12-21 17:21:44 +01:00
2023-12-11 16:04:28 +01:00
### Release Job (tag-release.yml)
2023-09-07 15:27:13 +02:00
2021-12-21 18:44:04 +01:00
Triggers:
2023-09-07 15:27:13 +02:00
2023-12-11 16:04:28 +01:00
- Manually triggered
2021-12-21 18:44:04 +01:00
2023-12-11 16:04:28 +01:00
This job is responsible for building and pushing all the production services, packages and images. This is done via [budibase-deploys ](https://github.com/Budibase/budibase-deploys/actions/workflows/release.yml ).
2023-09-07 15:27:13 +02:00
2023-12-11 16:04:28 +01:00
An input is required, indicating if the new version will be a `patch` , `minor` or `major` bump.
2021-12-21 18:44:04 +01:00
2023-12-11 16:04:28 +01:00
More documentation can be found in here: https://budibase.atlassian.net/wiki/spaces/DEVOPS/pages/347930625/Production+release
2021-12-21 17:21:44 +01:00
## Common Workflows
2021-12-21 18:44:04 +01:00
### Deploy Changes to Production (Release)
2023-09-07 15:27:13 +02:00
2023-12-11 16:04:28 +01:00
- Merge your changes into `master`
- Run `tag-release.yml`
- Check the progress in [budibase-deploys ](https://github.com/Budibase/budibase-deploys/actions/workflows/release.yml )
2021-12-21 17:21:44 +01:00
2021-12-21 18:44:04 +01:00
### Rollback A Bad Cloud Deployment
2023-09-07 15:27:13 +02:00
2023-12-11 16:40:11 +01:00
Rollback documentation can be found in here.
https://budibase.atlassian.net/wiki/spaces/DEVOPS/pages/347930625/Production+release#Rollback