Packer Docker GCP

55 views
Skip to first unread message

david foley

unread,
Feb 3, 2022, 6:35:42 AM2/3/22
to Packer
Hi All, 

I'm trying to figure out how i can push to GCP Container Register via Packer.

source "docker" "example" {
    image = "ubuntu"
    export_path = "image.tar"
}

build {
  sources = ["source.docker.example"]

post-processors {
post-processor "docker-tag" {
    repository = "gcr.io/<project>/python"
    tag        = ["2.1"]
  }
post-processor "docker-push"{
    login = file(".json")
    login_server = "gcr.io"
}

}
}
Reply all
Reply to author
Forward
0 new messages