mirror of
https://github.com/factoriotools/factorio-docker.git
synced 2025-07-03 07:28:27 +02:00
Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
1eb90fd79d | |||
efcc29cfed | |||
1b7decd8ce | |||
b38750e4ac |
@ -16,8 +16,7 @@ jobs:
|
|||||||
- bash -c 'shopt -s globstar; shellcheck **/*.sh'
|
- bash -c 'shopt -s globstar; shellcheck **/*.sh'
|
||||||
- &build
|
- &build
|
||||||
stage: build
|
stage: build
|
||||||
# set EXTRA_TAG to latest,stable when no more experimental versions for 0.17 come out
|
env: VERSION_SHORT=0.17 EXTRA_TAG=latest,stable
|
||||||
env: VERSION_SHORT=0.17 EXTRA_TAG=latest
|
|
||||||
script:
|
script:
|
||||||
- ./build.sh $VERSION_SHORT
|
- ./build.sh $VERSION_SHORT
|
||||||
- <<: *build
|
- <<: *build
|
||||||
|
@ -9,8 +9,8 @@ ARG PGID=845
|
|||||||
|
|
||||||
ENV PORT=34197 \
|
ENV PORT=34197 \
|
||||||
RCON_PORT=27015 \
|
RCON_PORT=27015 \
|
||||||
VERSION=0.17.73 \
|
VERSION=0.17.75 \
|
||||||
SHA1=4d25372b08ea06b0265bdec3a02e55ea7892d5de \
|
SHA1=f4b63a803d9eb22e8102705fdc510e0de38a4c7a \
|
||||||
SAVES=/factorio/saves \
|
SAVES=/factorio/saves \
|
||||||
CONFIG=/factorio/config \
|
CONFIG=/factorio/config \
|
||||||
MODS=/factorio/mods \
|
MODS=/factorio/mods \
|
||||||
|
@ -58,7 +58,7 @@ update_mod()
|
|||||||
|
|
||||||
if [[ $HTTP_STATUS != 200 ]]; then
|
if [[ $HTTP_STATUS != 200 ]]; then
|
||||||
print_failure " Download failed: Code $HTTP_STATUS."
|
print_failure " Download failed: Code $HTTP_STATUS."
|
||||||
rm "$MOD_DIR/$MOD_FILENAME"
|
rm -f "$MOD_DIR/$MOD_FILENAME"
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -69,7 +69,7 @@ update_mod()
|
|||||||
|
|
||||||
if ! [[ $(sha1sum "$MOD_DIR/$MOD_FILENAME") =~ $MOD_SHA1 ]]; then
|
if ! [[ $(sha1sum "$MOD_DIR/$MOD_FILENAME") =~ $MOD_SHA1 ]]; then
|
||||||
print_failure " SHA1 mismatch!"
|
print_failure " SHA1 mismatch!"
|
||||||
rm "$MOD_DIR/$MOD_FILENAME"
|
rm -f "$MOD_DIR/$MOD_FILENAME"
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -78,7 +78,7 @@ update_mod()
|
|||||||
for file in "$MOD_DIR/${MOD_NAME}_"*".zip"; do # wildcard does usually not work in quotes: https://unix.stackexchange.com/a/67761
|
for file in "$MOD_DIR/${MOD_NAME}_"*".zip"; do # wildcard does usually not work in quotes: https://unix.stackexchange.com/a/67761
|
||||||
if [[ $file != $MOD_DIR/$MOD_FILENAME ]]; then
|
if [[ $file != $MOD_DIR/$MOD_FILENAME ]]; then
|
||||||
print_success " Deleting old version: $file"
|
print_success " Deleting old version: $file"
|
||||||
rm "$file"
|
rm -f "$file"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
# Factorio [](https://travis-ci.org/factoriotools/factorio-docker) [](https://hub.docker.com/r/factoriotools/factorio/) [](https://hub.docker.com/r/factoriotools/factorio/) [](https://hub.docker.com/r/factoriotools/factorio/) [](https://microbadger.com/images/factoriotools/factorio "Get your own image badge on microbadger.com")
|
# Factorio [](https://travis-ci.org/factoriotools/factorio-docker) [](https://hub.docker.com/r/factoriotools/factorio/) [](https://hub.docker.com/r/factoriotools/factorio/) [](https://hub.docker.com/r/factoriotools/factorio/) [](https://microbadger.com/images/factoriotools/factorio "Get your own image badge on microbadger.com")
|
||||||
|
|
||||||
* `0.17.73`, `0.17`, `latest` [(0.17/Dockerfile)](https://github.com/factoriotools/factorio-docker/blob/master/0.17/Dockerfile)
|
* `0.17.75`, `0.17`, `latest` [(0.17/Dockerfile)](https://github.com/factoriotools/factorio-docker/blob/master/0.17/Dockerfile)
|
||||||
* `0.17.73` `stable` [(0.17/Dockerfile)](https://github.com/factoriotools/factorio-docker/blob/master/0.17/Dockerfile)
|
* `0.17.75` `stable` [(0.17/Dockerfile)](https://github.com/factoriotools/factorio-docker/blob/master/0.17/Dockerfile)
|
||||||
* `0.16.51`, `0.16` [(0.16/Dockerfile)](https://github.com/factoriotools/factorio-docker/blob/master/0.16/Dockerfile)
|
* `0.16.51`, `0.16` [(0.16/Dockerfile)](https://github.com/factoriotools/factorio-docker/blob/master/0.16/Dockerfile)
|
||||||
* `0.15.40`, `0.15` [(0.15/Dockerfile)](https://github.com/factoriotools/factorio-docker/blob/master/0.15/Dockerfile)
|
* `0.15.40`, `0.15` [(0.15/Dockerfile)](https://github.com/factoriotools/factorio-docker/blob/master/0.15/Dockerfile)
|
||||||
* `0.14.23`, `0.14` [(0.14/Dockerfile)](https://github.com/factoriotools/factorio-docker/blob/master/0.14/Dockerfile)
|
* `0.14.23`, `0.14` [(0.14/Dockerfile)](https://github.com/factoriotools/factorio-docker/blob/master/0.14/Dockerfile)
|
||||||
|
4
build.sh
4
build.sh
@ -38,7 +38,7 @@ else
|
|||||||
if [[ -n ${EXTRA_TAG:-} ]]; then
|
if [[ -n ${EXTRA_TAG:-} ]]; then
|
||||||
IFS=","
|
IFS=","
|
||||||
for TAG in $EXTRA_TAG; do
|
for TAG in $EXTRA_TAG; do
|
||||||
TAGS+=" -t $DOCKER_REPO:$EXTRA_TAG"
|
TAGS+=" -t $DOCKER_REPO:$TAG"
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
@ -55,7 +55,7 @@ fi
|
|||||||
# latest changes where made in the folder corosponding to the version we build, we are on master and don#t build a PR.
|
# latest changes where made in the folder corosponding to the version we build, we are on master and don#t build a PR.
|
||||||
if [[ $(dirname "$(git diff --name-only HEAD^)") =~ $VERSION_SHORT ]] && [[ $TRAVIS_BRANCH == master ]] && [[ $TRAVIS_PULL_REQUEST_BRANCH == "" ]] ||
|
if [[ $(dirname "$(git diff --name-only HEAD^)") =~ $VERSION_SHORT ]] && [[ $TRAVIS_BRANCH == master ]] && [[ $TRAVIS_PULL_REQUEST_BRANCH == "" ]] ||
|
||||||
# we build a tag and we are not on master
|
# we build a tag and we are not on master
|
||||||
[[ $VERSION == "${TRAVIS_BRANCH_VERSION:-}" ]] && [[ $TRAVIS_PULL_REQUEST_BRANCH == "" ]] ||
|
[[ $VERSION == "${TRAVIS_BRANCH_VERSION:-}" ]] && [[ ${TRAVIS_PULL_REQUEST_BRANCH:-} == "" ]] ||
|
||||||
# we are not in CI
|
# we are not in CI
|
||||||
[[ -z ${CI:-} ]]; then
|
[[ -z ${CI:-} ]]; then
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user