Repository navigation
Google Cloud Build
Cloud Build is the CI/CD platform we're using. It will watch the repositories and when code is pushed it will run our automated tests, as well as bundle and deploy code to our production web servers.
This repo is already setup to run tests on pushes made to any branch and will run tests and deploy code pushed to the main branch
You will be able to see if the tests pass by looking on github at commit that was pushed to see if there is a red X or a green checkmark
note: Make sure you have access to the Capitol Information Group project from the Cloud Build Dashboard before proceeding
Triggers can be setup to run when:
- Pushing to a branch
- Pushing to a tag (making a release a GitHub)
- Creating a pull request on GitHub
You can then choose the repo and the branch(es) to watch for the aforementioned git activity. When the trigger requirements are met it will run the YAML file specified when creating the trigger.
- Click the red X
- Then click Details
- The Summary will give you a brief description of the issue
- Click History on the left side of the Cloud Build Dashboard
- From here you can see the branch the trigger is running for under the Ref column
- Click the build number under the Build column
- Here you will be able to see each step being run and where things went wrong
- Clicking on the failed step will make the build log show only that step's output which can be used to narrow down the issue
