Skip to content

Commit

Permalink
Do not pass empty Registry info in Go container registry test
Browse files Browse the repository at this point in the history
We use gcloud auth in CI so we won't need to pass any registry info.
  • Loading branch information
guineveresaenger committed Feb 28, 2023
1 parent 8beadb6 commit 4c27d4c
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions examples/container-registries/gcp/go/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,12 @@ func main() {
return rep.RepositoryUrl, nil
})

// Get registry info (creds and endpoint).
imageName := pulumi.Sprintf("%s/myapp", registryUrl)
registryInfo := docker.RegistryOutput{} // use gcloud

// Build and publish the app image.
image, err := docker.NewImage(ctx, "my-image", &docker.ImageArgs{
Build: &docker.DockerBuildArgs{Context: pulumi.String("app")},
ImageName: imageName,
Registry: registryInfo,
})

// Export the resulting image name
Expand Down

0 comments on commit 4c27d4c

Please sign in to comment.