Add commit hash to tag names

Signed-off-by: Thomas A. Christensen II <25492070+MillironX@users.noreply.github.com>
This commit is contained in:
Thomas A. Christensen II 2022-03-30 17:49:08 -05:00
parent b09db0cb57
commit c301db5ed8
Signed by: millironx
GPG key ID: 139C07724802BC5D

View file

@ -14,6 +14,9 @@ jobs:
- name: Extract Tag Name 🕵️ - name: Extract Tag Name 🕵️
id: tag-name id: tag-name
uses: olegtarasov/get-tag@v2.1 uses: olegtarasov/get-tag@v2.1
- name: Extract Short Hash 🕵️
id: hash
uses: pr-mpt/actions-commit-has@v1
- name: Install QEMU 🖥️ - name: Install QEMU 🖥️
uses: docker/setup-qemu-action@v1 uses: docker/setup-qemu-action@v1
- name: Install Docker 🐋 - name: Install Docker 🐋
@ -41,8 +44,8 @@ jobs:
push: true push: true
tags: | tags: |
millironx/juliapro:latest 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: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:latest
ghcr.io/millironx/juliapro:${{ steps.tag-name.outputs.tag }} ghcr.io/millironx/juliapro:${{ steps.tag-name.outputs.tag }}-${{ steps.hash.outputs.short }}