I have a Google Cloud Build trigger that build my image on the Google Cloud. I also have VPC network that hosting some resources that should be accessible while building the images.
While building the image, my docker script need to access the web server. It seems like the GCP Cloud build network is not my private VPC network. So, the script is not accessible to required resources that needed while building.
Is this possible to run the build in the VPC network? If yes, how?
It WILL be possible. Today, the feature is opened to Alpha testers and will be soon (I expect by 2 months) released in beta.
Last week, gcloud SDK received this update that allow you to create a worker pool. In fact, you will create a pool of VM in your project. And thus, the VM will be directly connected to your VPC.
I don't know the pricing model, but I think you will pay the Worker pool as standard VM price. Therefore, it won't as cheaper as Cloud Build. And it seems not planned to create a connector (peering? VPC connector?) between your VPC and the current Cloud Build managed version.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With