Skip to content
Snippets Groups Projects
Unverified Commit 83e1c91f authored by Nan Liu's avatar Nan Liu Committed by GitHub
Browse files

fix(datasource/docker): Allow ecr and ecr-fips docker registry for AWS. (#27680)

parent 93c89105
No related branches found
No related tags found
No related merge requests found
......@@ -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(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment