Skip to content

Commit

Permalink
fix(datasource/docker): Allow ecr and ecr-fips docker registry for AW…
Browse files Browse the repository at this point in the history
…S. (#27680)

Co-authored-by: Rhys Arkins <rhys@arkins.net>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
  • Loading branch information
3 people committed Mar 5, 2024
1 parent 93c8910 commit 83e1c91
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/modules/datasource/docker/ecr.ts
Expand Up @@ -6,7 +6,9 @@ import type { HttpResponse } from '../../../util/http/types';
import { regEx } from '../../../util/regex';
import { addSecretForSanitizing } from '../../../util/sanitize';

export const ecrRegex = regEx(/\d+\.dkr\.ecr\.([-a-z0-9]+)\.amazonaws\.com/);
export const ecrRegex = regEx(
/\d+\.dkr\.ecr(?:-fips)?\.([-a-z0-9]+)\.amazonaws\.com/,
);
export const ecrPublicRegex = regEx(/public\.ecr\.aws/);

export async function getECRAuthToken(
Expand Down

0 comments on commit 83e1c91

Please sign in to comment.