Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

CI/CD pipeline to update GCP image

how do i update a GCP image using a CI.CD pipeline?

currently this is what i do

1. I use packer to build and customize the vmdk on my mac laptop

2. upload the vmdk to cloud bucker with gsutil

3. import the image to library: 

gcloud compute images import rocky-linux9-custom-date-xxx \
--source-file=gs://xxxxxx/RockyLinux-disk001.vmdk

4. delete the old image

 

any idea?

3 1 309