Skip to content

Commit

Permalink
Merge pull request #75 from depot/docs/codebuild-lambda-config
Browse files Browse the repository at this point in the history
docs: add docker config auth method
  • Loading branch information
kylegalbraith authored Jul 20, 2024
2 parents 043d182 + 65aa6d1 commit 09ff5d7
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions content/integrations/aws-codebuild.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,19 @@ phases:
- depot build -t <your-ecr-registry-url>: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: <type your 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).
Expand Down

0 comments on commit 09ff5d7

Please sign in to comment.