diff --git a/content/integrations/aws-codebuild.mdx b/content/integrations/aws-codebuild.mdx index 46aa4bd..6408082 100644 --- a/content/integrations/aws-codebuild.mdx +++ b/content/integrations/aws-codebuild.mdx @@ -171,6 +171,19 @@ phases: - depot build -t :latest --push . ``` +#### Obtaining an authenticated Docker config.json + +Alternatively, you can copy a pre-configured, authenticated `config.json` by logging into the Docker registry and copying the `config.json` file. + +```bash +$ docker login -u your-username +Password: + +$ cat ~/.docker/config.json +``` + +You can now copy the contents of the `config.json` file and use it in your CodeBuild configuration. + ### Build and load the image back for testing You can download the built container image into the workflow using the [`--load` flag](/docs/cli/reference#depot-build).