mirror of
https://github.com/Pumpkin-MC/Pumpkin.git
synced 2026-08-30 20:14:23 +00:00
Add useful docker tags (#682)
* Better tags * remove - form mc * update tagging version extraction
This commit is contained in:
14
.github/workflows/docker.yml
vendored
14
.github/workflows/docker.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user