Configure and launch an Image Builder pipeline directly in the Cloud de Confiance console. The Cloud de Confiance console provides an interactive interface where you can specify your base image source, output destinations, customization steps, and execution triggers.
Before you begin
- Complete the environment setup steps in Prepare your environment.
- If you intend to trigger builds automatically from a Git repository, connect
your GitHub, GitLab, or Bitbucket repository by using either
Cloud Build repositories (
2nd gen) or Developer Connect connection links.
Required roles
To get the permissions that you need to create and manage image customization pipelines using the Cloud de Confiance console, ask your administrator to grant you the following IAM roles on your project:
- Cloud Build Editor (
roles/cloudbuild.builds.editor) - Service Account User (
roles/iam.serviceAccountUser) - Compute Admin (
roles/compute.admin)
For more information about granting roles, see Manage access to projects, folders, and organizations.
You might also be able to get the required permissions through custom roles or other predefined roles.
Create and manage a pipeline
In the Cloud de Confiance console, you can create new custom OS image pipelines, edit existing configurations, duplicate an existing pipeline, or delete pipelines when they are no longer needed.
Create a pipeline
To create a custom OS image pipeline using the Cloud de Confiance console, complete the following steps:
In the Cloud de Confiance console, go to the Images page.
Click Image Builder to go to the Image Builder home page.
In the region selector, select the region where you want to create your pipeline.
Click Create a pipeline.
In the Pipeline settings section, configure the core pipeline details:
- Name: Enter a unique name for the pipeline.
- Description: (Optional) Enter a description for the pipeline.
- Region: Select the Cloud de Confiance region for your pipeline. Image Builder is supported in every region where Cloud Build is available.
- Service account: Select the service account configured with the required IAM permissions, or create a new service account.
- Configuration source: Select one of the following methods for where
your customization configurations and scripts are stored:
- Integrate with a repository: Choose this option to retrieve your
customization recipe and scripts from a Git repository. Because the
repository's
imagebuilder.yamlfile defines the source base image, build zone, customization steps, and target image settings, the console proceeds directly to triggers. Configure the following fields:- Repository: Select a connected repository, or click Link repository to connect a GitHub, GitLab, or Bitbucket repository.
- Path to image builder configuration: Enter the relative
path to your customization recipe file inside the repository,
such as
imagebuilder.yaml. - Cloud Storage folder: Click Browse to select the Cloud Storage folder where pipeline logs and build artifacts are uploaded.
- Store scripts in Google Cloud Storage: Choose this alternative
to configure your base image, target image details, and customization
steps directly in the console interface. The console saves your
scripts to Cloud Storage and guides you through the full
step-by-step wizard. Configure the following field:
- Customization script folder: Click Browse to select the Cloud Storage folder to store your customization scripts.
- Integrate with a repository: Choose this option to retrieve your
customization recipe and scripts from a Git repository. Because the
repository's
- Artifact Registry: (Optional) If you want to upload the target image archive and generate cryptographic SLSA build provenance attestations, select a generic repository from the Artifact Registry repository list. For more information, see Verify image provenance.
Click Next to proceed to the remaining configuration panels based on the configuration source you selected:
If you selected Integrate with a repository:
The repository's
imagebuilder.yamlrecipe defines your source base image, target image settings, and customization steps. The console skips manual entry and proceeds directly to triggers:- In the Triggers section, configure when your pipeline runs:
- Run on schedule: Specify a recurring schedule using cron syntax.
- Run on repository event: Trigger builds automatically when repository events occur, such as a Push to a branch, Push new tag, or Pull request, and specify branch or tag filter patterns.
- Click Next to proceed to the Summary section.
- Review your pipeline configuration, and click Create.
- In the Triggers section, configure when your pipeline runs:
If you selected Store scripts in Google Cloud Storage:
- In the Source image details section, specify the base OS image:
- Use an image family: Select a public OS family, such as Container-Optimized OS or Ubuntu. The pipeline automatically selects the latest non-deprecated image in that family for every build.
- Use an existing image: Select a specific OS image.
- Click Next to proceed to the Target image details section:
- Enter a name for the generated custom OS image.
- (Optional) Specify an image family, description, resource labels, and customer-managed encryption keys (CMEK).
- Click Next to proceed to the Customization section:
- Select Customization actions to add, edit, or reorder discrete customization steps, such as installing packages or running inline shell scripts.
- Select Add YAML to write or paste raw recipe
stepsdirectly in YAML. - (Optional) Under Advanced configurations, select the specific Zone, Machine type, or Reservation to use for the worker and test VMs where build jobs run. Bare metal machine types are not supported.
- Click Next to proceed to the Triggers section:
- Select Run on schedule to define an automated recurring schedule, or leave unchecked for manual execution.
- Click Next to proceed to the Summary section.
- Review your pipeline configuration, and click Create.
- In the Source image details section, specify the base OS image:
After you create the pipeline:
- If you did not configure automated triggers, you can run the pipeline manually: from the Image Builder pipelines list, click More actions > Run next to your pipeline.
- If you configured Run on schedule or Run on repository event, the pipeline runs automatically when the trigger conditions or schedule are met.
Edit a pipeline
To edit an existing Image Builder pipeline, complete the following steps:
In the Cloud de Confiance console, go to the Images page.
Click Image Builder to view your list of pipelines.
Next to the pipeline that you want to edit, click More actions > Edit.
Update the pipeline settings, configuration source, target image details, customization steps, or trigger settings as needed.
Click Save.
Duplicate a pipeline
To create a new pipeline by copying an existing configuration, complete the following steps:
In the Cloud de Confiance console, go to the Images page.
Click Image Builder to view your list of pipelines.
Next to the pipeline that you want to duplicate, click More actions > Duplicate.
In the pipeline creation form, review the pre-filled parameters copied from the original pipeline. You can edit the Pipeline name field to specify a new unique name.
Update any pipeline parameters or settings as needed.
Click Create.
Delete a pipeline
When you delete a pipeline, Image Builder stops future automated runs and permanently removes the pipeline configuration. Deleting a pipeline doesn't delete any custom OS images, Artifact Registry artifacts, or Cloud Storage buckets that you created previously.
To delete an Image Builder pipeline, complete the following steps:
In the Cloud de Confiance console, go to the Images page.
Click Image Builder to view your list of pipelines.
Next to the pipeline that you want to delete, click More actions > Delete.
In the confirmation dialog, click Delete to permanently remove the pipeline.
Verify and monitor the build
To track the progress of your build pipeline, complete the following steps:
In the Cloud de Confiance console, go to the Cloud Build page.
In the navigation menu, click History to view active or completed jobs.
In the Builds list, click the Build ID of your build to inspect container run logs. The logs display steps being performed inside the worker VM such as system package updates or custom shell commands, followed by validation test results from the test VM, and final output registration.
What's next
- Learn how to define customization recipes in the Customization recipe schema.
- If you want to configure and run pipelines programmatically using configuration files, see Create a custom OS image pipeline using gcloud CLI or Terraform.
- Verify image provenance.