agreeable-processor-5681
01/06/2022, 4:36 PMconst ecrRepo = new aws.ecr.Repository(
_.kebabCase(`${projectName} Repository`),
{
tags: {
name: _.kebabCase(`${projectName} repository`),
},
imageTagMutability: "MUTABLE",
imageScanningConfiguration: {
scanOnPush: true,
},
name: _.kebabCase(`${environment} ${projectName} Repository`),
},
);
const {password, userName} = await aws.ecr.getAuthorizationToken({
registryId: ecrRepo.registryId,
});
const dockerImage = new docker.Image(
_.kebabCase(`${projectName} Docker Image`),
{
imageName: _.kebabCase(`${projectName}`),
build: {
context: `./`,
dockerfile: "Dockerfile",
},
registry: {
server: ecrRepo.repositoryUrl,
password: password,
username: userName,
},
},
{
parent: ecrRepo,
},
);
billowy-army-68599
01/06/2022, 4:41 PMagreeable-processor-5681
01/06/2022, 8:30 PM