From 6401f465df8eeae6de05da0fb23eba2fea9f7227 Mon Sep 17 00:00:00 2001 From: Trey Pendragon Date: Thu, 30 May 2024 16:24:22 -0700 Subject: [PATCH] Use PR_HEAD_SHA See https://github.com/docker/metadata-action/issues/414 --- .github/workflows/build-docker-image.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/build-docker-image.yml b/.github/workflows/build-docker-image.yml index 32717497..9793a570 100644 --- a/.github/workflows/build-docker-image.yml +++ b/.github/workflows/build-docker-image.yml @@ -42,6 +42,8 @@ jobs: type=ref,event=branch type=ref,event=pr type=sha + env: + DOCKER_METADATA_PR_HEAD_SHA: true # This step uses the `docker/build-push-action` action to build the image, based on your repository's `Dockerfile`. If the build succeeds, it pushes the image to GitHub Packages. # It uses the `context` parameter to define the build's context as the set of files located in the specified path. For more information, see "[Usage](https://github.com/docker/build-push-action#usage)" in the README of the `docker/build-push-action` repository. # It uses the `tags` and `labels` parameters to tag and label the image with the output from the "meta" step.