Sorry for the slow response to this mail. The build command I'm using is simply sudo ./build-debian-cloud --codename squeeze or sudo ./build-debian-cloud --codename wheezy, from the top level of a checkout of https://github.com/google/build-debian-cloud
or Anders' upstream repository (no unmerged changes exist right now). The code supports auto-upload and auto-image-add, but I'm not using either feature right now (auto-image-add also has some bugs for my setup). The commands after that would be something like this:
# Upload the image. For this command, the bucket inside Google Cloud Storage can live anywhere, it doesn't matter and becomes irrelevant to an image once gcutil addimage runs.
# I currently have mine in the debian-cloud project but it doesn't have to be. I might move it to the debian-cloud-experiments project, or anywhere else.
gsutil cp debian-squeeze-20130502.tar.gz gs://jkaplowitz_gce_debian/debian-6_0_7-squeeze-v20130502.tar.gz
# Create the image for testing purposes.
gcutil --project=debian-cloud-experiments addimage debian-6-squeeze-v20130502 --description="Debian 6.0.7 squeeze, built on 2013-05-02" gs://jkaplowitz_gce_debian/debian-6_0_7-squeeze-v20130502.tar.gz --preferred_kernel=projects/google/global/kernels/gce-v20130325
# Perform some testing before publishing to all Google Compute Engine customers, as we are providing a way for them to automatically pick the latest debian-cloud squeeze and wheezy images. The minimal example here confirms basic SSH functionality and cleans up after itself.
gcutil --project=debian-cloud-experiments addinstance debian-6-squeeze-v20130502-$USER-test --image=projects/debian-cloud/global/images/debian-7-v20130502 --zone=us-central1-b --machine_type=n1-standard-1
gcutil ssh debian-6-squeeze-v20130502-$USER-test
gcutil --project=debian-cloud-experiments deleteinstance debian-6-squeeze-v20130502-$USER-test
# Delete the test image.
gcutil --project=debian-cloud-experiments deleteimage debian-6-squeeze-v20130502
# Publish the image for real.
gcutil --project=debian-cloud addimage debian-6-squeeze-v20130502 --description="Debian 6.0.7 squeeze, built on 2013-05-02" gs://jkaplowitz_gce_debian/debian-6_0_7-squeeze-v20130502.tar.gz --preferred_kernel=projects/google/global/kernels/gce-v20130325
We've slightly tweaked the naming convention to have both number and codename and to avoid underscores (apparently not allowed), but I'll send a separate mail about our last-minute tweaks.
Feel free to list us in the cloud team wiki page. I've been meaning to do it myself but haven't yet signed in to the Debian wiki on the computers I use when I focus on this effort. I'll fix that soon. :)