Compare commits
2 Commits
72ed93825e
...
f0e49e981b
| Author | SHA1 | Date | |
|---|---|---|---|
| f0e49e981b | |||
| 209a23db16 |
15
.drone.yml
Normal file
15
.drone.yml
Normal 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
|
||||||
@@ -6,6 +6,8 @@ Use the `downloadMods.sh` to download mods to a volume.
|
|||||||
|
|
||||||
# Environment variables
|
# Environment variables
|
||||||
|
|
||||||
|
`PORT` - Port to listen on. default: 2302
|
||||||
|
`LIMIT_FPS` - Limit the fps of the server
|
||||||
`STEAM_USER` - Steam username
|
`STEAM_USER` - Steam username
|
||||||
`STEAM_PASSWORD` - Steam password
|
`STEAM_PASSWORD` - Steam password
|
||||||
`WORKSHOP_COLLECTION` - id of a steam workshop collection. Used to load mods
|
`WORKSHOP_COLLECTION` - id of a steam workshop collection. Used to load mods
|
||||||
|
|||||||
@@ -34,12 +34,12 @@ fi
|
|||||||
# https://community.bistudio.com/wiki/Arma_3:_Startup_Parameters#Server_Options
|
# 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"
|
SERVER_ARGS="-name server -config=$VOLUME_HOME/config/config.cfg -profiles=$VOLUME_HOME/config/profiles"
|
||||||
|
|
||||||
if [ -n "$A3_LIMIT_FPS" ]; then
|
if [ -n "$LIMIT_FPS" ]; then
|
||||||
SERVER_ARGS="${SERVER_ARGS} -limitFPS=${A3_LIMIT_FPS}"
|
SERVER_ARGS="${SERVER_ARGS} -limitFPS=${LIMIT_FPS}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -n "$A3_PORT" ]; then
|
if [ -n "$PORT" ]; then
|
||||||
SERVER_ARGS="${SERVER_ARGS} -port=${A3_PORT}"
|
SERVER_ARGS="${SERVER_ARGS} -port=${PORT}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|||||||
Reference in New Issue
Block a user