We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa2614b commit ed70804Copy full SHA for ed70804
hooks/lib/ecr-registry-provider.bash
@@ -1,12 +1,15 @@
1
login() {
2
- local account_id=$(aws sts get-caller-identity --query Account --output text)
3
- local region=$(get_ecr_region)
+ local account_id
+ local region
4
+
5
+ account_id=$(aws sts get-caller-identity --query Account --output text)
6
+ region=$(get_ecr_region)
7
8
aws ecr get-login-password \
9
--region "${region}" \
10
| docker login \
11
--username AWS \
- --password-stdin "${account_id}".dkr.ecr."${region}".amazonaws.com
12
+ --password-stdin "${account_id}.dkr.ecr.${region}.amazonaws.com"
13
}
14
15
get_ecr_region() {
0 commit comments