1
0
mirror of synced 2025-12-30 03:01:36 -05:00

Update Docker Registry workflow examples for docker/build-push-action@v2 (#6317)

This commit is contained in:
Rajiv Shah
2021-05-18 19:00:52 -04:00
committed by GitHub
parent 017f588d4d
commit 21f917bd5a
3 changed files with 110 additions and 102 deletions

View File

@@ -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.