Skip to content

Commit

Permalink
Allow ecr and ecr-fips docker registry for AWS.
Browse files Browse the repository at this point in the history
AWS ECR should support the following URLs:
* `*.dkr.ecr.us-east-1.amazonaws.com`
* `*.dkr.ecr-fips.us-east-1.amazonaws.com`
  • Loading branch information
nan-coupa committed Mar 1, 2024
1 parent 1c70fe7 commit 2d19cdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/modules/datasource/docker/ecr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ 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 2d19cdd

Please sign in to comment.