What should you do?

You are using Cloud Build to create a new Docker image on each source code commit to a Cloud Source Repositoties repository. Your application is built on every commit to the master branch. You want to release specific commits made to the master branch in an automated method.

What should you do?
A . Manually trigger the build for new releases.
B . Create a build trigger on a Git tag pattern. Use a Git tag convention for new releases.
C . Create a build trigger on a Git branch name pattern. Use a Git branch naming convention for new releases.
D . Commit your source code to a second Cloud Source Repositories repository with a second Cloud Build trigger. Use this repository for new releases only.

Answer: C

Explanation:

Reference: https://docs.docker.com/docker-hub/builds/

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments