7 lines
222 B
Bash
7 lines
222 B
Bash
#!/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
|