https://garden.io logo
#🌱|help-and-getting-started
What is programmatic repository image for container module?
# 🌱|help-and-getting-started
c

chilly-waitress-62592

12/28/2022, 8:23 PM
I would like to be able to reference the programmatically generated image locations of a container module in another module. How are they generated? In my
project.garden.yml
I have
Copy code
deploymentRegistry:
      hostname: registry-hostname
      namespace: my/namespace
The container module I want to know the image location/tag for has
Copy code
kind: Module
type: container
name: module-name
repositoryUrl: repository-address
I'd like to be able to get the full image repository and tag. Should it be something like:
registry-hostname/my/namespace/module-name
with a tag of
latest
?
Okay, yes I solved this by just glancing at my repository and seeing what was there. Pattern is indeed
registry-hostname/my/namespace/module-name
where tag is the module version. Referencing it in another module via
Copy code
repository: ${modules.module-name.outputs.deployment-image-name}
tag: ${modules.module-name.version}
2 Views