Skip to content

Commit 2cb5be0

Browse files
docs: mismatch between explanation and code in triggers (github#33783)
1 parent 2ec343e commit 2cb5be0

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

content/actions/publishing-packages/publishing-docker-images.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ In this guide, we will use the Docker `build-push-action` action to build the Do
5252

5353
## Publishing images to Docker Hub
5454

55-
{% data reusables.actions.release-trigger-workflow %}
55+
Each time you create a new release on {% data variables.product.product_name %}, 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.
5656

5757
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.
5858

@@ -129,7 +129,7 @@ The above workflow checks out the {% data variables.product.prodname_dotcom %} r
129129
{% data reusables.package_registry.container-registry-ghes-beta %}
130130
{% endif %}
131131

132-
{% data reusables.actions.release-trigger-workflow %}
132+
Each time you create a new release on {% data variables.product.product_name %}, you can trigger a workflow to publish your image. The workflow in the example below runs when a change is pushed to the `release` branch.
133133

134134
In the example workflow below, we use the Docker `login-action`{% ifversion fpt or ghec %}, `metadata-action`,{% endif %} and `build-push-action` actions to build the Docker image, and if the build succeeds, push the built image to {% data variables.product.prodname_registry %}.
135135

data/reusables/actions/release-trigger-workflow.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)