Develop on a separate branch, use Cloud Build to automatically build for every commit, and deploy to the 'master' branch. -> Correct. The best practice for a CI/CD pipeline is to develop on a separate branch, set up an automatic build for every commit, and then deploy to the 'master' branch once the build has passed. This ensures code stability and a consistent deployment process.
Develop, build, and deploy directly on the 'master' branch. -> Incorrect. It's not a best practice to develop, build, and deploy directly on the 'master' branch. The 'master' branch should be stable and only updated with well-tested code.
Develop on a separate branch, manually trigger a build for every commit, and deploy to the 'master' branch. -> Incorrect. This approach could work, but it's not ideal to manually trigger a build for every commit. Automation can help prevent human error and ensure consistency.
Develop, build, and deploy directly on a separate branch, then merge the branch into 'master' when ready. -> Incorrect. Building and deploying directly on a separate branch before merging to 'master' is not a best practice. It's better to test and verify the