changed to fabric
This commit is contained in:
parent
24ee35119b
commit
a49713d1ba
@ -1,6 +1,5 @@
|
||||
#!/bin/sh
|
||||
if [[ -z $VERSION ]] ;
|
||||
then
|
||||
VERSION=$(curl https://api.papermc.io/v2/projects/paper | jq -r .versions\[-1\]);
|
||||
fi;
|
||||
docker build --label type=GAME -t "minecraft:paper-$VERSION" . --build-arg VERSION=$VERSION
|
||||
if [[ -z $VERSION ]]; then VERSION=$(curl https://meta.fabricmc.net/v2/versions/game | jq -r '[(.[]|select(.stable))][0].version'); fi
|
||||
if [[ -z $LOADER ]]; then LOADER=$(curl https://meta.fabricmc.net/v2/versions/loader | jq -r '[(.[]|select(.stable))][0].version'); fi
|
||||
if [[ -z $INSTALLER ]]; then INSTALLER=$(curl https://meta.fabricmc.net/v2/versions/installer | jq -r '[(.[]|select(.stable))][0].version'); fi
|
||||
docker build --label type=GAME -t "minecraft:fabric-$VERSION" . --build-arg VERSION=$VERSION --build-arg INSTALLER=$INSTALLER --build-arg LOADER=$LOADER
|
||||
|
Loading…
x
Reference in New Issue
Block a user