Skip to content

Commit

Permalink
add aws codebuild docs
Browse files Browse the repository at this point in the history
  • Loading branch information
kylegalbraith committed Nov 21, 2023
1 parent 4e52b3b commit 36ebb46
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions content/integrations/aws-codebuild.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ You can inject project access tokens into the CodeBuild environment for `depot`

### [User access token](/docs/cli/authentication#user-access-tokens)

You can also inject a user access token into the CodeBuild environment for `depot` CLI authentication. User tokens are tied to a specific user and not a project. Therefore, it can be used to build all projects across all organizations that the user has access.
You can inject a user access token into the CodeBuild environment for `depot` CLI authentication. User tokens are tied to a specific user and not a project. Therefore, it can be used to build all projects across all organizations which the user has access.

## Configuration

Expand Down Expand Up @@ -81,9 +81,9 @@ phases:

### Build and push to AWS ECR

This example demonstrates how you can build and push a Docker image to AWS ECR from AWS CodeBuild via Depot.
This example demonstrates building and pushing a Docker image to AWS ECR from AWS CodeBuild via Depot.

Note that you need to grant your IAM service role for CodeBuild permission to access the ECR repository by adding the following statement to it's IAM policy:
Note that you need to grant your IAM service role for CodeBuild permission to access the ECR repository by adding the following statement to its IAM policy:

```json
{
Expand All @@ -100,7 +100,7 @@ Note that you need to grant your IAM service role for CodeBuild permission to ac
}
```

**In order to log into your ECR registry via `docker login`, you must use the EC2 runners for CodeBuild with Privileged mode selected. This gives your workflow access to Docker commands that you will use to authenticate your registry.**
**To log into your ECR registry via `docker login`, use the EC2 runners for CodeBuild with the Privileged mode selected. This gives your workflow access to Docker commands that you will use to authenticate your registry.**

```yaml showLineNumbers
version: 0.2
Expand All @@ -123,7 +123,7 @@ phases:

### Build and load the image back for testing

You can use the [`--load` flag](/docs/cli/reference#depot-build) to download the built container image into the workflow.
You can download the built container image into the workflow using the [`--load` flag](/docs/cli/reference#depot-build).

```yaml showLineNumbers
version: 0.2
Expand All @@ -144,7 +144,7 @@ phases:

### Build, push, and load the image back in one command

You can simultaneously push the built image to a registry and load it back into the CI job by using the [`--load` and `--push`](/docs/cli/reference#depot-build) flag together.
You can simultaneously push the built image to a registry and load it back into the CI job using the [`--load` and `--push`](/docs/cli/reference#depot-build) flags together.

```yaml showLineNumbers
version: 0.2
Expand Down

0 comments on commit 36ebb46

Please sign in to comment.