|
28 | 28 | * [Notes](#notes)
|
29 | 29 | * [`nodes` output](#nodes-output)
|
30 | 30 | * [BuildKit container logs](#buildkit-container-logs)
|
| 31 | +* [Using on GHES](#using-on-ghes) |
31 | 32 | * [Contributing](#contributing)
|
32 | 33 |
|
33 | 34 | ## Usage
|
@@ -174,6 +175,35 @@ The following [official docker environment variables](https://docs.docker.com/en
|
174 | 175 |
|
175 | 176 | See https://docs.docker.com/build/ci/github-actions/configure-builder/#buildkit-container-logs
|
176 | 177 |
|
| 178 | +## Using on GHES |
| 179 | + |
| 180 | +GitHub Runners come [pre-installed with Docker Buildx](https://github.com/actions/runner-images/blob/main/images/linux/Ubuntu2204-Readme.md) |
| 181 | +following your virtual environment. If you specify a version or `latest` of |
| 182 | +Docker Buildx in your workflow, the version will be downloaded from [GitHub Releases in `docker/buildx`](https://github.com/docker/buildx/releases) |
| 183 | +repository. These calls to `docker/buildx` are made via unauthenticated requests, |
| 184 | +which are limited to [60 requests per hour per IP](https://docs.github.com/en/rest/overview/resources-in-the-rest-api#rate-limiting). |
| 185 | + |
| 186 | +If more requests are made within the time frame, then you will start to see |
| 187 | +rate-limit errors during downloading that looks like: |
| 188 | + |
| 189 | +``` |
| 190 | +##[error]API rate limit exceeded for... |
| 191 | +``` |
| 192 | + |
| 193 | +To get a higher rate limit, you can [generate a personal access token on github.com](https://github.com/settings/tokens/new) |
| 194 | +and pass it as the `github_token` input for the action: |
| 195 | + |
| 196 | +```yaml |
| 197 | +uses: docker/setup-buildx-action@v3 |
| 198 | +with: |
| 199 | + github_token: ${{ secrets.GH_DOTCOM_TOKEN }} |
| 200 | + version: v0.10.1 |
| 201 | +``` |
| 202 | + |
| 203 | +If the runner is not able to access `github.com`, it will take the default one |
| 204 | +available on the GitHub Runner or runner's tool cache. See "[Setting up the tool cache on self-hosted runners without internet access](https://docs.github.com/en/[email protected]/admin/github-actions/managing-access-to-actions-from-githubcom/setting-up-the-tool-cache-on-self-hosted-runners-without-internet-access)" |
| 205 | +for more information. |
| 206 | + |
177 | 207 | ## Contributing
|
178 | 208 |
|
179 | 209 | Want to contribute? Awesome! You can find information about contributing to
|
|
0 commit comments