You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: dockercfg-generator/README.md
+9-6
Original file line number
Diff line number
Diff line change
@@ -26,14 +26,17 @@ As per AWS documentation, this dockercfg should be valid for 48 hours.
26
26
27
27
Codeship supports using custom images to generate dockercfg files during the build process. To use this image to integrate with AWS ECR, simply define a entry in your services file for this image, and reference it from any steps or services which need to interact with ECR repositories with the `dockercfg_service` field. You'll also need to provide the following environment variables using an [encrypted env file](https://codeship.com/documentation/docker/encryption/):
28
28
29
-
* AWS_REGION - Your selected AWS Region, ensure this is a region suppoing AWS ECR
30
-
* AWS_ACCESS_KEY_ID - Your AWS Access Key
31
-
* AWS_SECRET_ACCESS_KEY - Your AWS Access Secret
29
+
*`AWS_REGION` - Your selected AWS Region, ensure this is a region supporting AWS ECR
30
+
*`AWS_ACCESS_KEY_ID` - Your AWS Access Key
31
+
*`AWS_SECRET_ACCESS_KEY` - Your AWS Access Secret
32
32
33
33
Optionally, you can also set the following variables to assume a role across accounts before generating the dockercfg:
34
34
35
-
* AWS_STS_ROLE - The AWS role to assume
36
-
* AWS_STS_ACCOUNT - The AWS account the role exists in
35
+
*`AWS_STS_ROLE` - The AWS role to assume
36
+
*`AWS_STS_ACCOUNT` - The AWS account the role exists in
37
+
38
+
If you are using an ECR registry in another AWS account to the IAM user but you aren't using a role, a list of AWS account IDs that correspond to the registries that you want to log in to can be specified:
39
+
*`AWS_ECR_REGISTRY_IDS` - A space separated list of AWS account IDs
37
40
38
41
Here is an example of using and ECR Dockercfg generator to authenticate pushing an image.
39
42
@@ -64,4 +67,4 @@ You can also use this authentication to pull images, or use with caching, by def
64
67
## Troubleshooting
65
68
66
69
#### "No basic auth credentials" error on push
67
-
Make sure the registry entry in your steps does not contain a trailing slash.
70
+
Make sure the registry entry in your steps does not contain a trailing slash.
0 commit comments