I’m using "Google Cloud Container Builder" to build and deploy my containers, but I need to do my build steps, then push my images, the do my deploy steps.
As far as I know, the way to push images is by adding
images:
- 'gcr.io/$PROJECT_ID/image1'
- 'gcr.io/$PROJECT_ID/image2'
to the bottom of the cloudbuild.yaml
file, but what if I need to do steps after I’ve pushed the images?
At this time, there is no way to take additional steps as part of that build process once the images have been pushed. If you want to take additional steps after a successful push, you have a few options:
docker push...
using the same credentials that your build uses. Note that if you go this route, you would (presumably) omit the images
field from your cloudbuild.yaml (unless there are other images you want pushed).Does one of these solutions give you what you need?
(Disclosure: I'm a Google Engineer who works on Container Builder.)