https://pulumi.com logo
d

dazzling-sundown-39670

07/08/2020, 1:50 PM
How would I push to this registry I've created on Digitalocean?
Copy code
const registry = new digitalocean.ContainerRegistry(appName)

const credentials = new digitalocean.ContainerRegistryDockerCredentials(appName, {
  registryName: registry.name,
});

const image = new docker.Image(appName, {
  build: '../',
  imageName: appName,
  registry: ???, // What to put here?
})
m

millions-furniture-75402

07/08/2020, 1:52 PM
did you try making it
registry
from the component resource you defined above?
d

dazzling-sundown-39670

07/08/2020, 2:11 PM
@millions-furniture-75402 yeah it doesn't work, it needs user/password/server
But thanks!
g

great-flag-86735

07/08/2020, 4:02 PM
I used something like this:
Copy code
registry: {
	server: registry.loginServer,
	username: registry.adminUsername,
	password: registry.adminPassword,
},
This was for Azure, but should be similar
d

dazzling-sundown-39670

07/12/2020, 11:37 AM
@great-flag-86735 thanks but the do registry doesn't expose anything like that 🤔