mirror of
https://github.com/factoriotools/factorio-docker.git
synced 2024-11-07 03:07:24 +01:00
605ca74c0e
* Quote all vars, remove useless echo/sub-shell, add shebands, fail on unset vars, enable pipefail, formatting * Add CI including linting via hadolint nad shellcheck * Update all base images to tag 3.9 * Switch to maintainer labels * Quote vars * Remove commented code * Ignore if the folder exists
13 lines
202 B
Bash
Executable File
13 lines
202 B
Bash
Executable File
#!/bin/bash
|
|
set -eo pipefail
|
|
|
|
if [ -z "$1" ] ; then
|
|
echo "Usage: ./build.sh \$VERSION"
|
|
else
|
|
VERSION="$1"
|
|
fi
|
|
|
|
cd "$VERSION" || exit
|
|
|
|
docker build . -t "factoriotools/docker_factorio_server:$VERSION"
|