Skip to content

Repo sync #37566

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 16, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ In this guide, we will use the Docker `build-push-action` action to build the Do

## Publishing images to Docker Hub

{% data reusables.actions.jobs.dockerhub-ratelimit-ghr %}

Each time you create a new release on {% data variables.product.github %}, you can trigger a workflow to publish your image. The workflow in the example below runs when the `release` event triggers with the `published` activity type.

In the example workflow below, we use the Docker `login-action` and `build-push-action` actions to build the Docker image and, if the build succeeds, push the built image to Docker Hub.
Expand Down
2 changes: 2 additions & 0 deletions data/reusables/actions/jobs/dockerhub-ratelimit-ghr.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
> [!NOTE]
> Docker Hub normally imposes rate limits on both push and pull operations which will affect jobs on self-hosted runners. However, {% data variables.product.github %}-hosted runners are not subject to these limits based on an agreement between {% data variables.product.github %} and Docker.
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
Use `jobs.<job_id>.container.image` to define the Docker image to use as the container to run the action. The value can be the Docker Hub image name or a registry name.
{% data reusables.actions.jobs.dockerhub-ratelimit-ghr %}
Loading