ArtifactRegistryRepository

A resource for creating an artifact registry repository. Can be used to store docker images, python packages, and more.

Like all Resources, this class configures itself across multiple Environments.

Example Usage

Create a docker repository

1
import launchflow as lf
2
3
artifact_registry = lf.gcp.ArtifactRegistryRepository("my-artifact-registry", format="DOCKER")

Create a python repository

1
import launchflow as lf
2
3
python_repository = lf.gcp.ArtifactRegistryRepository("my-python-repository", format="PYTHON")

Create a NPM repository

1
import launchflow as lf
2
3
npm_repository = lf.gcp.ArtifactRegistryRepository("my-npm-repository", format="NPM")

initialization

Create a new ArtifactRegistryRepository resource.

Args:

  • name (str): The name of the ArtifactRegistryRepository resource. This must be globally unique.
  • format (Union[str, RegistryFormat]): The format of the ArtifactRegistryRepository.
  • location (Optional[str]): The location of the ArtifactRegistryRepository. Defaults to the default region of the GCP project.

inputs

1
ArtifactRegistryRepository.inputs(environment_state: EnvironmentState) -> ArtifactRegistryInputs

Get the inputs for the Artifact Registry repository resource.

Args:

  • environment_state (EnvironmentState): The envirionment state to get the inputs for.

Returns:

  • ArtifactRegistryInputs: The inputs for the Artifact Registry repository resource.