How would I push to this registry I've created on ...
# typescript
d
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
did you try making it
registry
from the component resource you defined above?
d
@millions-furniture-75402 yeah it doesn't work, it needs user/password/server
But thanks!
g
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
@great-flag-86735 thanks but the do registry doesn't expose anything like that 🤔