From 9f55d22e1e4aba77f484cf8c2053f074cc296171 Mon Sep 17 00:00:00 2001 From: Amndeep Singh Mann Date: Mon, 23 Dec 2024 16:58:09 -0500 Subject: [PATCH] docker sha Signed-off-by: Amndeep Singh Mann --- .github/workflows/push-lite-to-docker.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/push-lite-to-docker.yml b/.github/workflows/push-lite-to-docker.yml index 00b580f49c..780f5b982a 100644 --- a/.github/workflows/push-lite-to-docker.yml +++ b/.github/workflows/push-lite-to-docker.yml @@ -28,3 +28,7 @@ jobs: push: false # revert platforms: linux/amd64 tags: mitre/heimdall-lite:latest,mitre/heimdall-lite:${{ github.event.pull_request.head.sha }} # should be ${{ github.sha }} but pull requests are weird + - name: Get Docker SHA + shell: bash + id: get-docker-sha + run: echo "DOCKER_SHA=$(docker pull mitre/heimdall2:${{ github.event.pull_request.head.sha }} > /dev/null 2>&1 && docker inspect --format='{{index .RepoDigests 0}}' mitre/heimdall2:${{ github.event.pull_request.head.sha }} | cut -d '@' -f 2)" >> $GITHUB_ENV # this line will need to be changed too to get rid of the pull request stuff