mirror of
https://github.com/factoriotools/factorio-docker.git
synced 2025-07-07 17:54:41 +02:00
Advance CI features (#245)
* Build feature branches with branch tag * Build short and long image tag * Add latest and stable tag, made moving repos easier * Only push tags to registry * Only build tags that where changed * Fix if and quoting, push $VERSION_SHORT * Update MicroBadger with Webhook, closes #251 * Quote vars * Set tag on PR, too * Switch to hadolint docker image due to PR not having enviroment variables and I don't want to commit my token in the script * Only push image on master
This commit is contained in:
@ -30,7 +30,7 @@ if [ ! -f "$CONFIG/map-settings.json" ]; then
|
||||
fi
|
||||
|
||||
NRTMPSAVES=$( find -L "$SAVES" -iname \*.tmp.zip -mindepth 1 | wc -l )
|
||||
if [ $NRTMPSAVES -gt 0 ]; then
|
||||
if [ "$NRTMPSAVES" -gt 0 ]; then
|
||||
# Delete incomplete saves (such as after a forced exit)
|
||||
rm -f "$SAVES/*.tmp.zip"
|
||||
fi
|
||||
@ -48,7 +48,7 @@ else
|
||||
fi
|
||||
|
||||
NRSAVES=$( find -L "$SAVES" -iname \*.zip -mindepth 1 | wc -l )
|
||||
if [ $NRSAVES -eq 0 ]; then
|
||||
if [ "$NRSAVES" -eq 0 ]; then
|
||||
# Generate a new map if no save ZIPs exist
|
||||
$SU_EXEC /opt/factorio/bin/x64/factorio \
|
||||
--create "$SAVES/_autosave1.zip" \
|
||||
|
Reference in New Issue
Block a user