mirror of
https://github.com/docker/login-action.git
synced 2026-12-02 06:39:07 +08:00
Add support for AWS Elastic Container Registry (ECR)
Add example for Google Container Registry (GCR)
This commit is contained in:
5 files changed
+169
-23
No files matched your search
@@ -0,0 +1,7 @@
|
||||
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'));
|
||||
};
|
||||
Reference in new issue
Block a user