mirror of
https://github.com/docker/login-action.git
synced 2026-09-08 23:42:44 +00:00
f37c715508
Add example for Google Container Registry (GCR)
8 lines
280 B
TypeScript
8 lines
280 B
TypeScript
export const isECR = async (registry: string): Promise<boolean> => {
|
|
return registry.includes('amazonaws');
|
|
};
|
|
|
|
export const getRegion = async (registry: string): Promise<string> => {
|
|
return registry.substring(registry.indexOf('ecr.') + 4, registry.indexOf('.amazonaws'));
|
|
};
|