Topic 1 Question 52
You are using Cloud Build to create a new Docker image on each source code commit to a Cloud Source Repositories 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?
Manually trigger the build for new releases.
Create a build trigger on a Git tag pattern. Use a Git tag convention for new releases.
Create a build trigger on a Git branch name pattern. Use a Git branch naming convention for new releases.
Commit your source code to a second Cloud Source Repositories repository with a second Cloud Build trigger. Use this repository for new releases only.
解説
Reference: https://docs.docker.com/docker-hub/builds/
ユーザの投票
コメント(9)
B is correct answer
👍 19saurabh18052020/11/09C) is not correct because the question says the commits are made in master branch. B) is good answer. When you want a release create a tag release-* , in Cloud Build use this pattern for tag.
👍 4[Removed]2021/07/18Also B is correct, but in the questions is specificied "branch name" , not tag
👍 3maxdanny2021/02/28
シャッフルモード