mirror of
https://github.com/factoriotools/factorio-docker.git
synced 2025-07-02 06:58:16 +02:00
Compare commits
33 Commits
Author | SHA1 | Date | |
---|---|---|---|
62e1a9f266 | |||
be7ecddb0d | |||
43599d0c23 | |||
6fb4cbc600 | |||
fe0e8f9b91 | |||
f76e88cea1 | |||
cbaa20cdea | |||
b3c134d396 | |||
9bdb79b494 | |||
77d83b4152 | |||
25d4edf14f | |||
e16b111c0b | |||
09e1ad2045 | |||
2efa39084f | |||
77edb05109 | |||
2eea2a25e4 | |||
98ea8a27c1 | |||
956af65a2b | |||
b5c1dff7b4 | |||
ee5b023911 | |||
045ef7a214 | |||
bbc2d42302 | |||
0173eab54c | |||
f868aa16ad | |||
5cd0c40975 | |||
778d982c6d | |||
9d2c38df65 | |||
b2a4195e13 | |||
18ccac666d | |||
830d042e4b | |||
a0868ba653 | |||
7002778ab5 | |||
44371283b6 |
20
.travis.yml
20
.travis.yml
@ -11,25 +11,17 @@ addons:
|
|||||||
jobs:
|
jobs:
|
||||||
include:
|
include:
|
||||||
- stage: test
|
- stage: test
|
||||||
env: HADOLINT=${HOME}/hadolint
|
|
||||||
install: curl -sLo ${HADOLINT} $(curl -s https://api.github.com/repos/hadolint/hadolint/releases/latest?access_token=${GITHUB_TOKEN} | jq -r '.assets | .[] | select(.name=="hadolint-Linux-x86_64") | .browser_download_url')
|
|
||||||
&& chmod 700 ${HADOLINT}
|
|
||||||
script:
|
script:
|
||||||
- git ls-files --exclude='*Dockerfile' --ignored | xargs --max-lines=1 ${HADOLINT}
|
- git ls-files --exclude='*Dockerfile' --ignored | xargs --max-lines=1 -I{} sh -c 'docker run --rm -i -v ${PWD}/.hadolint.yaml:/.hadolint.yaml hadolint/hadolint < "$1"' -- {}
|
||||||
- bash -c 'shopt -s globstar; shellcheck **/*.sh'
|
- bash -c 'shopt -s globstar; shellcheck **/*.sh'
|
||||||
- &build
|
- &build
|
||||||
stage: build
|
stage: build
|
||||||
env: VERSION=0.17
|
env: VERSION_SHORT=0.17 EXTRA_TAG=latest
|
||||||
script:
|
script:
|
||||||
- ./build.sh $VERSION
|
- ./build.sh $VERSION_SHORT
|
||||||
after_success:
|
|
||||||
- if [ "$TRAVIS_BRANCH" == "master" ]; then
|
|
||||||
echo "$DOCKER_PASSWORD" | DOCKER login -u "$DOCKER_USERNAME" --password-stdin
|
|
||||||
docker push "factoriotools/docker_factorio_server:$VERSION"
|
|
||||||
fi
|
|
||||||
- <<: *build
|
- <<: *build
|
||||||
env: VERSION=0.16
|
env: VERSION_SHORT=0.16 EXTRA_TAG=stable
|
||||||
- <<: *build
|
- <<: *build
|
||||||
env: VERSION=0.15
|
env: VERSION_SHORT=0.15
|
||||||
- <<: *build
|
- <<: *build
|
||||||
env: VERSION=0.14
|
env: VERSION_SHORT=0.14
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
FROM frolvlad/alpine-glibc:alpine-3.9
|
FROM frolvlad/alpine-glibc:alpine-3.9
|
||||||
|
|
||||||
LABEL maintainer="https://github.com/dtandersen/docker_factorio_server"
|
LABEL maintainer="https://github.com/factoriotools/factorio-docker"
|
||||||
|
|
||||||
ENV VERSION=0.14.23 \
|
ENV VERSION=0.14.23 \
|
||||||
SHA1=6ef84341c6fc1cf45cfdd6acc8468aaa117b9e8a
|
SHA1=6ef84341c6fc1cf45cfdd6acc8468aaa117b9e8a
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
FROM frolvlad/alpine-glibc:alpine-3.9
|
FROM frolvlad/alpine-glibc:alpine-3.9
|
||||||
|
|
||||||
LABEL maintainer="https://github.com/dtandersen/docker_factorio_server"
|
LABEL maintainer="https://github.com/factoriotools/factorio-docker"
|
||||||
|
|
||||||
ENV PORT=34197 \
|
ENV PORT=34197 \
|
||||||
RCON_PORT=27015 \
|
RCON_PORT=27015 \
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
FROM frolvlad/alpine-glibc:alpine-3.9
|
FROM frolvlad/alpine-glibc:alpine-3.9
|
||||||
|
|
||||||
LABEL maintainer="https://github.com/dtandersen/docker_factorio_server"
|
LABEL maintainer="https://github.com/factoriotools/factorio-docker"
|
||||||
|
|
||||||
ARG USER=factorio
|
ARG USER=factorio
|
||||||
ARG GROUP=factorio
|
ARG GROUP=factorio
|
||||||
@ -15,10 +15,12 @@ ENV PORT=34197 \
|
|||||||
CONFIG=/factorio/config \
|
CONFIG=/factorio/config \
|
||||||
MODS=/factorio/mods \
|
MODS=/factorio/mods \
|
||||||
SCENARIOS=/factorio/scenarios \
|
SCENARIOS=/factorio/scenarios \
|
||||||
SCRIPTOUTPUT=/factorio/script-output
|
SCRIPTOUTPUT=/factorio/script-output \
|
||||||
|
PUID="$PUID" \
|
||||||
|
PGID="$PGID"
|
||||||
|
|
||||||
RUN mkdir -p /opt /factorio && \
|
RUN mkdir -p /opt /factorio && \
|
||||||
apk add --update --no-cache pwgen && \
|
apk add --update --no-cache pwgen su-exec shadow && \
|
||||||
apk add --update --no-cache --virtual .build-deps curl && \
|
apk add --update --no-cache --virtual .build-deps curl && \
|
||||||
curl -sSL https://www.factorio.com/get-download/$VERSION/headless/linux64 \
|
curl -sSL https://www.factorio.com/get-download/$VERSION/headless/linux64 \
|
||||||
-o /tmp/factorio_headless_x64_$VERSION.tar.xz && \
|
-o /tmp/factorio_headless_x64_$VERSION.tar.xz && \
|
||||||
@ -41,6 +43,4 @@ EXPOSE $PORT/udp $RCON_PORT/tcp
|
|||||||
|
|
||||||
COPY files/ /
|
COPY files/ /
|
||||||
|
|
||||||
USER $USER
|
|
||||||
|
|
||||||
ENTRYPOINT ["/docker-entrypoint.sh"]
|
ENTRYPOINT ["/docker-entrypoint.sh"]
|
||||||
|
@ -3,6 +3,8 @@ set -euo pipefail
|
|||||||
|
|
||||||
id
|
id
|
||||||
|
|
||||||
|
FACTORIO_VOL=/factorio
|
||||||
|
mkdir -p "$FACTORIO_VOL"
|
||||||
mkdir -p "$SAVES"
|
mkdir -p "$SAVES"
|
||||||
mkdir -p "$CONFIG"
|
mkdir -p "$CONFIG"
|
||||||
mkdir -p "$MODS"
|
mkdir -p "$MODS"
|
||||||
@ -26,17 +28,29 @@ if [ ! -f "$CONFIG/map-settings.json" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if find -L "$SAVES" -iname \*.tmp.zip -mindepth 1 -print | grep -q .; then
|
if find -L "$SAVES" -iname \*.tmp.zip -mindepth 1 -print | grep -q .; then
|
||||||
rm -f "$SAVES/*.tmp.zip"
|
rm -f "$SAVES"/*.tmp.zip
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "$(id -u)" = '0' ]; then
|
||||||
|
# Update the User and Group ID based on the PUID/PGID variables
|
||||||
|
usermod -o -u "$PUID" factorio
|
||||||
|
groupmod -o -g "$PGID" factorio
|
||||||
|
# Take ownership of factorio data if running as root
|
||||||
|
chown -R factorio:factorio "$FACTORIO_VOL"
|
||||||
|
# Drop to the factorio user
|
||||||
|
SU_EXEC="su-exec factorio"
|
||||||
|
else
|
||||||
|
SU_EXEC=""
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! find -L "$SAVES" -iname \*.zip -mindepth 1 -print | grep -q .; then
|
if ! find -L "$SAVES" -iname \*.zip -mindepth 1 -print | grep -q .; then
|
||||||
/opt/factorio/bin/x64/factorio \
|
$SU_EXEC /opt/factorio/bin/x64/factorio \
|
||||||
--create "$SAVES/_autosave1.zip" \
|
--create "$SAVES/_autosave1.zip" \
|
||||||
--map-gen-settings "$CONFIG/map-gen-settings.json" \
|
--map-gen-settings "$CONFIG/map-gen-settings.json" \
|
||||||
--map-settings "$CONFIG/map-settings.json"
|
--map-settings "$CONFIG/map-settings.json"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exec /opt/factorio/bin/x64/factorio \
|
$SU_EXEC /opt/factorio/bin/x64/factorio \
|
||||||
--port "$PORT" \
|
--port "$PORT" \
|
||||||
--start-server-load-latest \
|
--start-server-load-latest \
|
||||||
--server-settings "$CONFIG/server-settings.json" \
|
--server-settings "$CONFIG/server-settings.json" \
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
FROM frolvlad/alpine-glibc:alpine-3.9
|
FROM frolvlad/alpine-glibc:alpine-3.9
|
||||||
|
|
||||||
LABEL maintainer="https://github.com/dtandersen/docker_factorio_server"
|
LABEL maintainer="https://github.com/factoriotools/factorio-docker"
|
||||||
|
|
||||||
ARG USER=factorio
|
ARG USER=factorio
|
||||||
ARG GROUP=factorio
|
ARG GROUP=factorio
|
||||||
@ -9,33 +9,33 @@ ARG PGID=845
|
|||||||
|
|
||||||
ENV PORT=34197 \
|
ENV PORT=34197 \
|
||||||
RCON_PORT=27015 \
|
RCON_PORT=27015 \
|
||||||
VERSION=0.17.38 \
|
VERSION=0.17.49 \
|
||||||
SHA1=c77f9858984213718318b3a4edc028be80274cf8 \
|
SHA1=c093a42b856f0eb06a22a9a1998984a8cc0e2f62 \
|
||||||
SAVES=/factorio/saves \
|
SAVES=/factorio/saves \
|
||||||
CONFIG=/factorio/config \
|
CONFIG=/factorio/config \
|
||||||
MODS=/factorio/mods \
|
MODS=/factorio/mods \
|
||||||
SCENARIOS=/factorio/scenarios \
|
SCENARIOS=/factorio/scenarios \
|
||||||
SCRIPTOUTPUT=/factorio/script-output \
|
SCRIPTOUTPUT=/factorio/script-output \
|
||||||
PUID=$PUID \
|
PUID="$PUID" \
|
||||||
PGID=$PGID
|
PGID="$PGID"
|
||||||
|
|
||||||
RUN mkdir -p /opt /factorio && \
|
RUN mkdir -p /opt /factorio && \
|
||||||
apk add --update --no-cache pwgen su-exec binutils gettext libintl shadow && \
|
apk add --update --no-cache pwgen su-exec binutils gettext libintl shadow && \
|
||||||
apk add --update --no-cache --virtual .build-deps curl && \
|
apk add --update --no-cache --virtual .build-deps curl && \
|
||||||
curl -sSL https://www.factorio.com/get-download/$VERSION/headless/linux64 \
|
curl -sSL "https://www.factorio.com/get-download/$VERSION/headless/linux64" \
|
||||||
-o /tmp/factorio_headless_x64_$VERSION.tar.xz && \
|
-o /tmp/factorio_headless_x64_$VERSION.tar.xz && \
|
||||||
echo "$SHA1 /tmp/factorio_headless_x64_$VERSION.tar.xz" | sha1sum -c && \
|
echo "$SHA1 /tmp/factorio_headless_x64_$VERSION.tar.xz" | sha1sum -c && \
|
||||||
tar xf /tmp/factorio_headless_x64_$VERSION.tar.xz --directory /opt && \
|
tar xf "/tmp/factorio_headless_x64_$VERSION.tar.xz" --directory /opt && \
|
||||||
chmod ugo=rwx /opt/factorio && \
|
chmod ugo=rwx /opt/factorio && \
|
||||||
rm /tmp/factorio_headless_x64_$VERSION.tar.xz && \
|
rm "/tmp/factorio_headless_x64_$VERSION.tar.xz" && \
|
||||||
ln -s $SAVES /opt/factorio/saves && \
|
ln -s "$SAVES" /opt/factorio/saves && \
|
||||||
ln -s $MODS /opt/factorio/mods && \
|
ln -s "$MODS" /opt/factorio/mods && \
|
||||||
ln -s $SCENARIOS /opt/factorio/scenarios && \
|
ln -s "$SCENARIOS" /opt/factorio/scenarios && \
|
||||||
ln -s $SCRIPTOUTPUT /opt/factorio/script-output && \
|
ln -s "$SCRIPTOUTPUT" /opt/factorio/script-output && \
|
||||||
apk del .build-deps && \
|
apk del .build-deps && \
|
||||||
addgroup -g $PGID -S $GROUP && \
|
addgroup -g "$PGID" -S "$GROUP" && \
|
||||||
adduser -u $PUID -G $GROUP -s /bin/sh -SDH $USER && \
|
adduser -u "$PUID" -G "$GROUP" -s /bin/sh -SDH "$USER" && \
|
||||||
chown -R $USER:$GROUP /opt/factorio /factorio
|
chown -R "$USER":"$GROUP" /opt/factorio /factorio
|
||||||
|
|
||||||
VOLUME /factorio
|
VOLUME /factorio
|
||||||
|
|
||||||
|
@ -30,9 +30,9 @@ if [ ! -f "$CONFIG/map-settings.json" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
NRTMPSAVES=$( find -L "$SAVES" -iname \*.tmp.zip -mindepth 1 | wc -l )
|
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)
|
# Delete incomplete saves (such as after a forced exit)
|
||||||
rm -f "$SAVES/*.tmp.zip"
|
rm -f "$SAVES"/*.tmp.zip
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$(id -u)" = '0' ]; then
|
if [ "$(id -u)" = '0' ]; then
|
||||||
@ -40,7 +40,7 @@ if [ "$(id -u)" = '0' ]; then
|
|||||||
usermod -o -u "$PUID" factorio
|
usermod -o -u "$PUID" factorio
|
||||||
groupmod -o -g "$PGID" factorio
|
groupmod -o -g "$PGID" factorio
|
||||||
# Take ownership of factorio data if running as root
|
# Take ownership of factorio data if running as root
|
||||||
chown -R factorio:factorio $FACTORIO_VOL
|
chown -R factorio:factorio "$FACTORIO_VOL"
|
||||||
# Drop to the factorio user
|
# Drop to the factorio user
|
||||||
SU_EXEC="su-exec factorio"
|
SU_EXEC="su-exec factorio"
|
||||||
else
|
else
|
||||||
@ -48,7 +48,7 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
NRSAVES=$( find -L "$SAVES" -iname \*.zip -mindepth 1 | wc -l )
|
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
|
# Generate a new map if no save ZIPs exist
|
||||||
$SU_EXEC /opt/factorio/bin/x64/factorio \
|
$SU_EXEC /opt/factorio/bin/x64/factorio \
|
||||||
--create "$SAVES/_autosave1.zip" \
|
--create "$SAVES/_autosave1.zip" \
|
||||||
|
17
README.md
17
README.md
@ -1,9 +1,9 @@
|
|||||||
# Factorio [](https://microbadger.com/images/factoriotools/factorio "Get your own image badge on microbadger.com") [](https://hub.docker.com/r/factoriotools/factorio/) [](https://hub.docker.com/r/factoriotools/factorio/)
|
# Factorio [](https://travis-ci.org/factoriotools/factorio-docker) [](https://microbadger.com/images/factoriotools/factorio) [](https://microbadger.com/images/factoriotools/factorio "Get your own image badge on microbadger.com") [](https://hub.docker.com/r/factoriotools/factorio/) [](https://hub.docker.com/r/factoriotools/factorio/)
|
||||||
|
|
||||||
* `0.17.38`, `0.17`, `latest` [(0.17/Dockerfile)](https://github.com/dtandersen/docker_factorio_server/blob/master/0.17/Dockerfile)
|
* `0.17.49`, `0.17`, `latest` [(0.17/Dockerfile)](https://github.com/factoriotools/factorio-docker/blob/master/0.17/Dockerfile)
|
||||||
* `0.16.51`, `0.16`, `stable` [(0.16/Dockerfile)](https://github.com/dtandersen/docker_factorio_server/blob/master/0.16/Dockerfile)
|
* `0.16.51`, `0.16`, `stable` [(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/dtandersen/docker_factorio_server/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/dtandersen/docker_factorio_server/blob/master/0.14/Dockerfile)
|
* `0.14.23`, `0.14` [(0.14/Dockerfile)](https://github.com/factoriotools/factorio-docker/blob/master/0.14/Dockerfile)
|
||||||
|
|
||||||
*Tag descriptions*
|
*Tag descriptions*
|
||||||
|
|
||||||
@ -239,10 +239,10 @@ The files in this volume should be owned by the factorio user, uid 845.
|
|||||||
|
|
||||||
[Docker Compose](https://docs.docker.com/compose/install/) is an easy way to run Docker containers.
|
[Docker Compose](https://docs.docker.com/compose/install/) is an easy way to run Docker containers.
|
||||||
|
|
||||||
First get a [docker-compose.yml](https://github.com/dtandersen/docker_factorio_server/blob/master/0.17/docker-compose.yml) file. To get it from this repository:
|
First get a [docker-compose.yml](https://github.com/factoriotools/factorio-docker/blob/master/0.17/docker-compose.yml) file. To get it from this repository:
|
||||||
|
|
||||||
```
|
```
|
||||||
git clone https://github.com/dtandersen/docker_factorio_server.git
|
git clone https://github.com/factoriotools/factorio-docker.git
|
||||||
cd docker_factorio_server/0.17
|
cd docker_factorio_server/0.17
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -338,8 +338,9 @@ Use the `PORT` environment variable to start the server on the a different port,
|
|||||||
|
|
||||||
# Contributors
|
# Contributors
|
||||||
|
|
||||||
* [dtandersen](https://github.com/dtandersen/docker_factorio_server) - Maintainer
|
* [dtandersen](https://github.com/dtandersen) - Maintainer
|
||||||
* [Fank](https://github.com/Fankserver/docker-factorio-watchdog) - Keeper of the Factorio watchdog that keeps the version up-to-date.
|
* [Fank](https://github.com/Fankserver/docker-factorio-watchdog) - Keeper of the Factorio watchdog that keeps the version up-to-date.
|
||||||
|
* [SuperSandro2000](https://github.com/supersandro2000) - CI Guy
|
||||||
* [DBendit](https://github.com/DBendit/docker_factorio_server) - Admin list, ban list, version updates
|
* [DBendit](https://github.com/DBendit/docker_factorio_server) - Admin list, ban list, version updates
|
||||||
* [Zopanix](https://github.com/zopanix/docker_factorio_server) - Originator
|
* [Zopanix](https://github.com/zopanix/docker_factorio_server) - Originator
|
||||||
* [Rfvgyhn](https://github.com/Rfvgyhn/docker-factorio) - Randomly generate RCON password
|
* [Rfvgyhn](https://github.com/Rfvgyhn/docker-factorio) - Randomly generate RCON password
|
||||||
|
59
build.sh
59
build.sh
@ -1,12 +1,59 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -eo pipefail
|
set -eox pipefail
|
||||||
|
|
||||||
if [ -z "$1" ] ; then
|
if [ -z "$1" ] && [ -n "$CI" ]; then
|
||||||
echo "Usage: ./build.sh \$VERSION"
|
echo "Usage: ./build.sh \$VERSION_SHORT"
|
||||||
|
exit 1
|
||||||
|
elif [ "$CI" == "true" ]; then
|
||||||
|
VERSION_SHORT="$1"
|
||||||
else
|
else
|
||||||
VERSION="$1"
|
VERSION_SHORT=$(find . -maxdepth 1 -type d | sort | tail -1 | grep -o "[0-9].[0-9]*")
|
||||||
|
EXTRA_TAG=latest
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cd "$VERSION" || exit
|
cd "$VERSION_SHORT" || exit
|
||||||
|
|
||||||
docker build . -t "factoriotools/docker_factorio_server:$VERSION"
|
VERSION=$(grep -oP '[0-9]+\.[0-9]+\.[0-9]+' Dockerfile | head -1)
|
||||||
|
DOCKER_REPO=factoriotools/factorio
|
||||||
|
|
||||||
|
if [ "$TRAVIS_PULL_REQUEST" == "true" ]; then
|
||||||
|
TAGS="$DOCKER_REPO:$TRAVIS_PULL_REQUEST_SLUG"
|
||||||
|
else
|
||||||
|
if [ "$TRAVIS_BRANCH" == "master" ] || [ "$TRAVIS_BRANCH" == "$VERSION" ]; then
|
||||||
|
TAGS="$DOCKER_REPO:$VERSION -t $DOCKER_REPO:$VERSION_SHORT"
|
||||||
|
elif [ -n "$TRAVIS_BRANCH" ]; then
|
||||||
|
TAGS="$DOCKER_REPO:$TRAVIS_BRANCH"
|
||||||
|
elif [ "$CI" == "" ]; then
|
||||||
|
TAGS="$DOCKER_REPO:$VERSION -t $DOCKER_REPO:$VERSION_SHORT"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -n "$EXTRA_TAG" ]; then
|
||||||
|
TAGS="$TAGS -t $DOCKER_REPO:$EXTRA_TAG"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
# shellcheck disable=SC2086
|
||||||
|
docker build . -t $TAGS
|
||||||
|
docker images
|
||||||
|
|
||||||
|
if [[ "$(dirname "$(git diff --name-only HEAD^)")" =~ $VERSION_SHORT ]] && [ "$TRAVIS_BRANCH" == "master" ] && [ "$TRAVIS_PULL_REQUEST_BRANCH" == "" ] ||
|
||||||
|
[ "$TRAVIS_BRANCH" == "$VERSION" ] && [ "$TRAVIS_PULL_REQUEST_BRANCH" == "" ] ||
|
||||||
|
[ "$CI" == "" ]; then
|
||||||
|
|
||||||
|
if [ "$CI" == "true" ]; then
|
||||||
|
echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -n "$TRAVIS_BRANCH" ] && [ "$TRAVIS_BRANCH" != "$VERSION" ] && [ "$TRAVIS_BRANCH" != "master" ]; then
|
||||||
|
docker push "$DOCKER_REPO:$TRAVIS_BRANCH"
|
||||||
|
fi
|
||||||
|
if [ -n "$TRAVIS_TAG" ] || [ "$CI" == "" ]; then
|
||||||
|
docker push "$DOCKER_REPO:$VERSION"
|
||||||
|
docker push "$DOCKER_REPO:$VERSION_SHORT"
|
||||||
|
fi
|
||||||
|
if [ -n "$EXTRA_TAG" ]; then
|
||||||
|
docker push "$DOCKER_REPO:$EXTRA_TAG"
|
||||||
|
fi
|
||||||
|
|
||||||
|
curl -X POST https://hooks.microbadger.com/images/factoriotools/factorio/TmmKGNp8jKcFqZvcJhTCIAJVluw=
|
||||||
|
fi
|
||||||
|
Reference in New Issue
Block a user