Skip to content

Commit c0e8db8

Browse files
committed
Exlude the cache tag from the immutability enforcement
1 parent 848c82e commit c0e8db8

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

apps/webapp/app/v3/getDeploymentImageRef.server.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,14 @@ async function createEcrRepository({
213213
const result = await ecr.send(
214214
new CreateRepositoryCommand({
215215
repositoryName,
216-
imageTagMutability: "IMMUTABLE",
216+
imageTagMutability: "IMMUTABLE_WITH_EXCLUSION",
217+
imageTagMutabilityExclusionFilters: [
218+
{
219+
// only the `cache` tag will be mutable, all other tags will be immutable
220+
filter: "cache",
221+
filterType: undefined,
222+
},
223+
],
217224
encryptionConfiguration: {
218225
encryptionType: "AES256",
219226
},

0 commit comments

Comments
 (0)