8 lines
244 B
Bash
8 lines
244 B
Bash
#!/bin/zsh
|
|
if [[ -z $VERSION ]] ;
|
|
then VERSION=$(\
|
|
curl https://factorio.com/api/latest-releases | \
|
|
jq -r .stable.headless\
|
|
);
|
|
fi;
|
|
docker build -t factorio:${VERSION} --build-arg VERSION=${VERSION} --label type=GAME . |