From bc512da3182e3caf52fc18f64c5a424c456b0188 Mon Sep 17 00:00:00 2001 From: Sebastiano Mariani Date: Tue, 22 Nov 2022 12:06:57 -0800 Subject: [PATCH] Fix Github action Docker image tags to use the SHA1 of HEAD (#7) Signed-off-by: Sebastiano Mariani --- .github/workflows/release-latest.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release-latest.yml b/.github/workflows/release-latest.yml index f6545a2..16d4326 100644 --- a/.github/workflows/release-latest.yml +++ b/.github/workflows/release-latest.yml @@ -20,7 +20,7 @@ jobs: run: | docker compose --file build-docker-compose.yml --env-file template.env build # Tag the image with the commit SHA[0:7] - DOCKER_IMG_TAG=`echo "${{ github.event.pull_request.head.sha }}" | cut -c 1-7` + DOCKER_IMG_TAG=`echo "${{ github.sha }}" | cut -c 1-7` docker tag ${{ secrets.DOCKER_USERNAME }}/misp-docker:core-latest ${{ secrets.DOCKER_USERNAME }}/misp-docker:core-$DOCKER_IMG_TAG docker tag ${{ secrets.DOCKER_USERNAME }}/misp-docker:modules-latest ${{ secrets.DOCKER_USERNAME }}/misp-docker:modules-$DOCKER_IMG_TAG