Add useful docker tags (#682)

* Better tags

* remove - form mc

* update tagging version extraction
This commit is contained in:
Commandcracker
2025-04-04 06:37:05 +00:00
committed by GitHub
parent e589460fb2
commit 33d9010c8f

View File

@@ -30,11 +30,25 @@ jobs:
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract Versions
id: versions
run: |
VERSION=$(awk -F '"' '/^version/ {print $2}' Cargo.toml)
echo "PUMPKIN_VERSION=$(echo $VERSION | cut -d '+' -f 1)" >> $GITHUB_ENV
echo "MC_VERSION=$(echo $VERSION | cut -d '+' -f 2)" >> $GITHUB_ENV
- name: Extract Metadata
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
type=ref,event=branch
type=raw,value=latest
type=sha
type=raw,value=mc${{ env.MC_VERSION }}
type=raw,value=${{ env.PUMPKIN_VERSION }}
type=raw,value=mc${{ env.MC_VERSION }}-${{ env.PUMPKIN_VERSION }}
- name: Docker Buildx
uses: docker/setup-buildx-action@v3