From c301db5ed82a195e020f1818fbc52e2985126b6c Mon Sep 17 00:00:00 2001 From: "Thomas A. Christensen II" <25492070+MillironX@users.noreply.github.com> Date: Wed, 30 Mar 2022 17:49:08 -0500 Subject: [PATCH] Add commit hash to tag names Signed-off-by: Thomas A. Christensen II <25492070+MillironX@users.noreply.github.com> --- .github/workflows/build.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index cdf416c..99cbfe5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -14,6 +14,9 @@ jobs: - name: Extract Tag Name 🕵️ id: tag-name uses: olegtarasov/get-tag@v2.1 + - name: Extract Short Hash 🕵️ + id: hash + uses: pr-mpt/actions-commit-has@v1 - name: Install QEMU 🖥️ uses: docker/setup-qemu-action@v1 - name: Install Docker 🐋 @@ -41,8 +44,8 @@ jobs: push: true tags: | millironx/juliapro:latest - millironx/juliapro:${{ steps.tag-name.outputs.tag }} + millironx/juliapro:${{ steps.tag-name.outputs.tag }}-${{ steps.hash.outputs.short }} quay.io/millironx/juliapro:latest - quay.io/millironx/juliapro:${{ steps.tag-name.outputs.tag }} + quay.io/millironx/juliapro:${{ steps.tag-name.outputs.tag }}-${{ steps.hash.outputs.short }} ghcr.io/millironx/juliapro:latest - ghcr.io/millironx/juliapro:${{ steps.tag-name.outputs.tag }} + ghcr.io/millironx/juliapro:${{ steps.tag-name.outputs.tag }}-${{ steps.hash.outputs.short }}