mirror of
https://github.com/OpenFactorioServerManager/factorio-server-manager.git
synced 2025-01-28 05:36:33 +02:00
Deploy to github
This commit is contained in:
parent
8d58ddb268
commit
e765d54ad3
@ -26,4 +26,11 @@ jobs:
|
|||||||
script:
|
script:
|
||||||
- mkdir /home/travis/build/mroote/build
|
- mkdir /home/travis/build/mroote/build
|
||||||
- docker run -t -e FAC_BRANCH=$TRAVIS_BRANCH -v /home/travis/build/mroote/build:/build factorio-server-manager
|
- docker run -t -e FAC_BRANCH=$TRAVIS_BRANCH -v /home/travis/build/mroote/build:/build factorio-server-manager
|
||||||
- ls /home/travis/build/mroote/build
|
- mv /home/travis/build/mroote/build/factorio-server-manager-linux.zip /home/travis/factorio-server-manager-linux-${TRAVIS_TAG}.zip
|
||||||
|
- mv /home/travis/build/mroote/build/factorio-server-manager-windows.zip /home/travis/factorio-server-manager-windows-${TRAVIS_TAG}.zip
|
||||||
|
deploy:
|
||||||
|
provider: releases
|
||||||
|
api_key: ""
|
||||||
|
file:
|
||||||
|
- /home/travis/factorio-server-manager-linux-${TRAVIS_TAG}.zip
|
||||||
|
- /home/travis/factorio-server-manager-windows-${TRAVIS_TAG}.zip
|
@ -1,8 +1,6 @@
|
|||||||
# glibc is required for Factorio Server binaries to run
|
# glibc is required for Factorio Server binaries to run
|
||||||
FROM frolvlad/alpine-glibc
|
FROM frolvlad/alpine-glibc
|
||||||
|
|
||||||
MAINTAINER Mitch Roote <mitch@r00t.ca>
|
|
||||||
|
|
||||||
ENV FACTORIO_VERSION=latest \
|
ENV FACTORIO_VERSION=latest \
|
||||||
MANAGER_VERSION=0.8.1 \
|
MANAGER_VERSION=0.8.1 \
|
||||||
ADMIN_PASSWORD=factorio
|
ADMIN_PASSWORD=factorio
|
||||||
|
@ -5,16 +5,14 @@ SECURITY_PATH ?= $(FACTORIO_PATH)/security
|
|||||||
SAVES_PATH ?= $(FACTORIO_PATH)/saves
|
SAVES_PATH ?= $(FACTORIO_PATH)/saves
|
||||||
MODS_PATH ?= $(FACTORIO_PATH)/mods
|
MODS_PATH ?= $(FACTORIO_PATH)/mods
|
||||||
PORT_FORWARD ?= -p 80:80 -p 443:443 -p 34197:34197/udp
|
PORT_FORWARD ?= -p 80:80 -p 443:443 -p 34197:34197/udp
|
||||||
|
FACTORIO_BRANCH ?= develop
|
||||||
|
|
||||||
build:
|
build:
|
||||||
|
docker build --build-arg FAC_BRANCH=$FACTORIO_BRANCH -f Dockerfile-build -t fsm-build .
|
||||||
docker build -t factorio-server-manager .
|
docker build -t factorio-server-manager .
|
||||||
|
|
||||||
logs:
|
logs:
|
||||||
docker logs factorio-server
|
docker logs factorio-server -f
|
||||||
echo "Nginx Access Logs"
|
|
||||||
docker exec -it factorio-server cat /var/log/nginx/access.log
|
|
||||||
echo "Nginx Error Logs"
|
|
||||||
docker exec -it factorio-server cat /var/log/nginx/error.log
|
|
||||||
|
|
||||||
run:
|
run:
|
||||||
docker run -d --name factorio-server -v $(SECURITY_PATH):/security -v $(SAVES_PATH):/opt/factorio/saves -v $(MODS_PATH):/opt/factorio/mods $(PORT_FORWARD) factorio-server-manager
|
docker run -d --name factorio-server -v $(SECURITY_PATH):/security -v $(SAVES_PATH):/opt/factorio/saves -v $(MODS_PATH):/opt/factorio/mods $(PORT_FORWARD) factorio-server-manager
|
||||||
@ -25,3 +23,5 @@ stop:
|
|||||||
|
|
||||||
clean:
|
clean:
|
||||||
docker rmi factorio-server-manager
|
docker rmi factorio-server-manager
|
||||||
|
docker stop fsm-build
|
||||||
|
docker rmi fsm-build
|
||||||
|
@ -4,4 +4,5 @@ echo "Cloning ${FAC_BRANCH}"
|
|||||||
git clone -b ${FAC_BRANCH} https://github.com/mroote/factorio-server-manager.git ${FAC_ROOT}
|
git clone -b ${FAC_BRANCH} https://github.com/mroote/factorio-server-manager.git ${FAC_ROOT}
|
||||||
echo "Creating build..."
|
echo "Creating build..."
|
||||||
make gen_release
|
make gen_release
|
||||||
cp build/* /build/
|
echo "Copying build artifacts..."
|
||||||
|
cp -v build/* /build/
|
Loading…
x
Reference in New Issue
Block a user