Compare commits

...

2 Commits

Author SHA1 Message Date
f0e49e981b added drone file
All checks were successful
continuous-integration/drone/push Build is passing
2022-08-29 13:53:29 +02:00
209a23db16 renamed port and fps parameter 2022-08-29 13:53:17 +02:00
3 changed files with 21 additions and 4 deletions

15
.drone.yml Normal file
View File

@@ -0,0 +1,15 @@
type: docker
kind: pipeline
name: default
steps:
- name: docker
image: plugins/docker
settings:
repo: djeeberjr/arma3
username: djeeberjr
password:
from_secret: DOCKER_HUB_TOKEN
trigger:
branch:
- master

View File

@@ -6,6 +6,8 @@ Use the `downloadMods.sh` to download mods to a volume.
# Environment variables
`PORT` - Port to listen on. default: 2302
`LIMIT_FPS` - Limit the fps of the server
`STEAM_USER` - Steam username
`STEAM_PASSWORD` - Steam password
`WORKSHOP_COLLECTION` - id of a steam workshop collection. Used to load mods

View File

@@ -34,12 +34,12 @@ fi
# https://community.bistudio.com/wiki/Arma_3:_Startup_Parameters#Server_Options
SERVER_ARGS="-name server -config=$VOLUME_HOME/config/config.cfg -profiles=$VOLUME_HOME/config/profiles"
if [ -n "$A3_LIMIT_FPS" ]; then
SERVER_ARGS="${SERVER_ARGS} -limitFPS=${A3_LIMIT_FPS}"
if [ -n "$LIMIT_FPS" ]; then
SERVER_ARGS="${SERVER_ARGS} -limitFPS=${LIMIT_FPS}"
fi
if [ -n "$A3_PORT" ]; then
SERVER_ARGS="${SERVER_ARGS} -port=${A3_PORT}"
if [ -n "$PORT" ]; then
SERVER_ARGS="${SERVER_ARGS} -port=${PORT}"
fi
#