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: content/manuals/build-cloud/ci.md
+43-20Lines changed: 43 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,30 +29,53 @@ See [Loading build results](./usage/#loading-build-results) for details.
29
29
30
30
> [!NOTE]
31
31
>
32
-
> Builds on Docker Build Cloud have a timeout limit of two hours. Builds that
33
-
> run for longer than two hours are automatically cancelled.
32
+
> Builds on Docker Build Cloud have a timeout limit of 90 minutes. Builds that
33
+
> run for longer than 90 minutes are automatically cancelled.
34
34
35
-
## CI platform examples
35
+
## Setting up credentials for CI/CD
36
36
37
-
### GitHub Actions
37
+
To enable your CI/CD system to build and push images using Docker Build Cloud, provide both an access token and a username. The type of token and the username you use depend on your account type and permissions.
38
+
39
+
- If you are an organization administrator or have permission to create [organization access tokens (OAT)](../security/for-admins/access-tokens.md), use an OAT and set `DOCKER_USER` to your Docker Hub organization name.
40
+
- If you do not have permission to create OATs or are using a personal account, use a [personal access token (PAT)](/security/for-developers/access-tokens/) and set `DOCKER_USER` to your Docker Hub username.
41
+
42
+
### Creating access tokens
43
+
44
+
#### For organization accounts
45
+
46
+
If you are an organization administrator:
47
+
48
+
1. Create an [organization access token (OAT)](../security/for-admins/access-tokens.md):
49
+
- The token must have these permissions:
50
+
-**cloud-connect** scope
51
+
-**Read public repositories** permission
52
+
-**Repository access** with **Image push** permission for the target repository:
53
+
- Expand the **Repository** drop-down.
54
+
- Select **Add repository** and choose your target repository.
55
+
- Set the **Image push** permission for the repository.
56
+
57
+
If you are not an organization administrator:
58
+
59
+
- Ask your organization administrator for an access token with the permissions listed above, or use a personal access token.
60
+
61
+
#### For personal accounts
62
+
63
+
1. Create a [personal access token (PAT)](/security/for-developers/access-tokens/):
64
+
- Create a new token with **Read & write** access.
65
+
- Note: Building with Docker Build Cloud only requires read access, but you need write access to push images to a Docker Hub repository.
66
+
67
+
68
+
## CI platform examples
38
69
39
70
> [!NOTE]
40
71
>
41
-
> Version 4.0.0 and later of `docker/build-push-action` and
42
-
> `docker/bake-action` builds images with [provenance attestations by
# Login to Docker Hub. For security reasons $DOCKER_PAT should be a Personal Access Token. See https://docs.docker.com/security/for-developers/access-tokens/
407
+
# Login to Docker Hub. For security reasons $DOCKER_PAT should be a Personal Access Token. See https://docs.docker.com/build-cloud/ci/#creating-access-tokens
# Login to Docker Hub. For security reasons $DOCKER_PAT should be a Personal Access Token. See https://docs.docker.com/security/for-developers/access-tokens/
452
+
# Login to Docker Hub. For security reasons $DOCKER_PAT should be a Personal Access Token. See https://docs.docker.com/build-cloud/ci/#creating-access-tokens
0 commit comments