Ultimate access to all questions.
Your company has assigned you the task of setting up a Continuous Integration pipeline. This pipeline will automatically build Docker containers for pushing to Container Registry and non-container artifacts for Cloud Storage upon code commit to the source repository. How would you achieve this?
Explanation:
The correct approach involves configuring the Cloud Build config file with both an images
field for Docker images to be pushed to the container registry and an artifacts
field for non-container artifacts destined for Cloud Storage. This method is effective because:
cloudbuild.yaml
or cloudbuild.json
) is designed to define pipeline steps and configurations.images
field is specifically for Docker images intended for a container registry.artifacts
field is designated for non-container artifacts to be stored in Cloud Storage.Incorrect options involve misplacing these configurations in the source repository config file, which is meant for version control settings, not build configurations, or confusing the purposes of the images
and artifacts
fields.