@pulumi/awsx
Version:
[](https://github.com/pulumi/pulumi-awsx/actions) [](https://slack.pulumi.com) [;
/**
* Builds the docker container specified by [pathOrBuild] and pushes it to this repository.
* The result is the unique ID pointing to that pushed image in this repo. This unique ID
* can be passed as the value to `image: repo.buildAndPushImage(...)` in an `ecs.Container`.
*/
buildAndPushImage(pathOrBuild: pulumi.Input<string | docker.DockerBuild>): pulumi.Output<string>;
}
/**
* Creates a new [Repository], optionally configured using [args], builds the docker container
* specified by [pathOrBuild] and then pushes the built image to the repository. The result
* contains both the Repository created as well as the unique ID referencing the built image in that
* repo. This result type can be passed in as `image: ecr.buildAndPushImage(...)` for an
* `ecs.Container`
*/
export declare function buildAndPushImage(name: string, pathOrBuild: pulumi.Input<string | docker.DockerBuild>, args?: RepositoryArgs, opts?: pulumi.ComponentResourceOptions): RepositoryImage;
export interface RepositoryArgs {
/**
* Underlying repository. If not provided, a new one will be created on your behalf.
*/
repository?: aws.ecr.Repository;
/**
* A mapping of tags to assign to the resource.
*/
tags?: pulumi.Input<Record<string, pulumi.Input<string>>>;
/**
* The arguments controlling the [LifecyclePolicy] for this [Repository]. If `undefined`, a default one will be
* created using `LifecyclePolicy.getDefaultLifecyclePolicyArgs`.
*/
lifeCyclePolicyArgs?: LifecyclePolicyArgs;
}
//# sourceMappingURL=repository.d.ts.map