Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
garrappachc committed Mar 15, 2021
0 parents commit 4e08434
Show file tree
Hide file tree
Showing 4 changed files with 78 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Build and publish Docker image

on:
schedule:
- cron: '0 0 * * *' # At 00:00.
push:
tags:
- '*.*.*'
pull_request:
branches:
- 'master'

jobs:
build:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v2
-
name: Docker meta
id: docker_meta
uses: crazy-max/ghaction-docker-meta@v1
with:
images: tf2pickuppl/tf2-gameserver
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
-
name: Login to DockerHub
if: github.event_name != 'pull_request'
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build and push
id: docker_build
uses: docker/build-push-action@v2
with:
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.docker_meta.outputs.tags }}
labels: ${{ steps.docker_meta.outputs.labels }}
9 changes: 9 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
FROM melkortf/tf2-competitive
LABEL maintainer="[email protected]"

# DM is conflicting with the ready up mode
RUN rm $SERVER_DIR/tf/addons/sourcemod/plugins/soap_{tf2dm,tournament}.smx

RUN wget https://github.com/tf2pickup-pl/stadium-sm-plugin/raw/master/teams.smx -O $SERVER_DIR/tf/addons/sourcemod/plugins/teams.smx

COPY server.cfg ${SERVER_DIR}/tf/cfg
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
TF2 server Docker image, crafted for tf2pickup.pl needs.
25 changes: 25 additions & 0 deletions server.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
log on

sv_contact ""
sv_tags ""
sv_allowdownload 1
sv_allowupload 1
sv_downloadurl "http://dl.serveme.tf/"

tv_enable 1
tv_maxclients 10

sv_quota_stringcmdspersecond 400

tftrue_no_hats 0
tftrue_no_misc 0
tftrue_no_action 0
tftrue_tv_autorecord 1
tftrue_tv_demos_path demos
tftrue_logs_roundend 0
tftrue_logs_accuracy 1

mp_tournament_readymode 1
mp_tournament_readymode_countdown 5
mp_tournament_readymode_min 2
mp_tournament_readymode_team_size 6

0 comments on commit 4e08434

Please sign in to comment.