Skip to content

Commit

Permalink
fix: add extractedTag for dockerImageCode
Browse files Browse the repository at this point in the history
  • Loading branch information
RanbirAulakh committed Dec 6, 2024
1 parent 95718e4 commit e1ffe75
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/osml/osml_container.ts
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,9 @@ export class OSMLContainer extends Construct {

if (this.buildDockerImageCode) {
// Create a DockerImageCode object for Lambda using the imported ECR repository.
this.dockerImageCode = DockerImageCode.fromEcr(this.repository);
this.dockerImageCode = DockerImageCode.fromEcr(this.repository, {
tagOrDigest: extractedTag
});
}
} else {
// If the CONTAINER_URI does not indicate an ECR repository, assume it is a public or private Docker registry.
Expand Down

0 comments on commit e1ffe75

Please sign in to comment.