add build-docker actions workflow
All checks were successful
/ build-docker (push) Successful in 5m45s

This commit is contained in:
cuqmbr 2025-06-08 12:51:36 +03:00
parent 6b0605be62
commit 6f767a3b61
Signed by: cuqmbr
GPG Key ID: 0AA446880C766199
3 changed files with 53 additions and 5 deletions

2
.dockerignore Normal file
View File

@ -0,0 +1,2 @@
src/logs
src/whitelist.json

46
.github/workflows/build-docker.yml vendored Normal file
View File

@ -0,0 +1,46 @@
---
on:
push:
branches:
- main
- develop
jobs:
build-docker:
runs-on: ubuntu-latest
env:
registry: gitea.cuqmbr.xyz
steps:
- name: Login to Docker Container Registry
uses: docker/login-action@v3
with:
registry: ${{env.registry}}
username: ${{vars.DOCKER_USER}}
password: ${{secrets.DOCKER_TOKEN}}
- name: Checkout repository
uses: actions/checkout@v4
# https://github.com/actions/checkout/issues/1830
# https://gitea.com/gitea/act_runner/issues/164
- name: Checkout lfs
run: |
git lfs install --local
AUTH=$(git config --local http.${{ github.server_url }}/.extraheader)
git config --local --unset http.${{ github.server_url }}/.extraheader
git config --local http.${{ github.server_url }}/${{ github.repository }}.git/info/lfs/objects/batch.extraheader "$AUTH"
git lfs pull
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and push
uses: docker/build-push-action@v6
with:
context: .
file: ./Dockerfile
platforms: linux/arm64,linux/amd64
push: true
# TODO: split tag names into multiple lines
tags: |
${{env.registry}}/${{github.repository_owner}}/${{github.event.repository.name}}/${{github.ref_name}}:${{github.sha}}
${{env.registry}}/${{github.repository_owner}}/${{github.event.repository.name}}/${{github.ref_name}}:latest

View File

@ -1,6 +1,6 @@
#For explaination of what each of the options does, please visit:
#https://github.com/LOOHP/Limbo/blob/master/src/main/resources/server.properties
#Sun Jun 08 11:50:59 EEST 2025
#Sun Jun 08 12:44:19 EEST 2025
allow-chat=true
allow-flight=false
bungee-guard=false
@ -8,8 +8,8 @@ bungeecord=false
default-gamemode=adventure
enforce-whitelist=false
forwarding-secrets=_PROXY_SECRET_
handshake-verbose=true
level-dimension=minecraft\:overworld
handshake-verbose=false
level-dimension=minecraft\:the_end
level-name=world;spawn.schem
log-player-ip-addresses=true
max-players=-1
@ -21,10 +21,10 @@ resource-pack-prompt={"text"\:"","extra"\:[{"text"\:"Install server resource pac
resource-pack-sha1=
server-ip=0.0.0.0
server-port=25565
tab-header="Bebrashield Limbo"
tab-footer=
tab-header=
ticks-per-second=5
velocity-modern=true
version=Limbo\!
view-distance=6
view-distance=2
world-spawn=world;20.5;17;22.5;-90;0