flat-appointment-12338
06/23/2021, 5:32 PMawsx.ecr.buildAndPushImage
?millions-furniture-75402
06/23/2021, 6:37 PMawsx.ecr.buildAndPushImage("myImage", {
context: "src",
args: {
tag: "name:tag",
},
});
export declare function buildAndPushImage(name: string, pathOrBuild: pulumi.Input<string | docker.DockerBuild>, args?: RepositoryArgs, opts?: pulumi.ComponentResourceOptions): RepositoryImage;
looking at the `docker.DockerBuild`:
/**
* An optional map of named build-time argument variables to set during the Docker build. This
* flag allows you to pass built-time variables that can be accessed like environment variables
* inside the `RUN` instruction.
*/
args?: pulumi.Input<Record<string, pulumi.Input<string>>>;
/**
* An optional catch-all list of arguments to provide extra CLI options to the docker build command. For
* example `['--network', 'host']`.
*/
extraOptions?: pulumi.Input<pulumi.Input<string>[]>;
flat-appointment-12338
06/23/2021, 7:19 PM