Update Docker Registry workflow examples for docker/build-push-action@v2 (#6317)
This commit is contained in:
@@ -1 +1 @@
|
||||
The above workflow checks out the {% data variables.product.prodname_dotcom %} repository, and uses the `build-push-action` action to build and push the Docker image. It sets the `build-push-action` option [`tag_with_ref`](https://github.com/marketplace/actions/build-and-push-docker-images#tag_with_ref) to automatically tag the built Docker image with the Git reference of the workflow event. This workflow is triggered on publishing a {% data variables.product.prodname_dotcom %} release, so the reference will be the Git tag for the release.
|
||||
The above workflow checks out the {% data variables.product.prodname_dotcom %} repository, uses the `login-action` to log in to the registry, and then uses the `build-push-action` action to build and push the Docker image. It tags the built Docker image with the Git reference of the workflow event. This workflow is triggered on publishing a {% data variables.product.prodname_dotcom %} release, so the reference will be the Git tag for the release.
|
||||
|
||||
Reference in New Issue
Block a user