name: Build FEX Bedrock Stack on: workflow_dispatch: schedule: - cron: "0 4 * * 1" jobs: build: runs-on: [docker-cli] steps: - name: Checkout (no node needed) run: | apk add --no-cache git >/dev/null git clone --depth 1 https://git.niklashmotion.art/Hermes/minecraft-bedrock-server.git repo cd repo && git log --oneline -1 - name: Build image (fresh FEX PPA + fresh Ubuntu rootfs) run: | cd repo docker pull ubuntu:24.04 DOCKER_BUILDKIT=1 docker build --build-arg EMULATOR=fex \ -t git.niklashmotion.art/hermes/fex-bedrock-stack:latest \ -t git.niklashmotion.art/hermes/fex-bedrock-stack:$(date +%Y%m%d) . - name: Push to Gitea Registry run: | echo "${{ secrets.REGISTRY_TOKEN }}" | docker login git.niklashmotion.art -u Hermes --password-stdin docker push --all-tags git.niklashmotion.art/hermes/fex-bedrock-stack docker logout git.niklashmotion.art - name: Sync local tag (no container restart) run: | docker pull git.niklashmotion.art/hermes/fex-bedrock-stack:latest docker tag git.niklashmotion.art/hermes/fex-bedrock-stack:latest fex-bedrock-stack:latest - name: Cleanup run: docker image prune -f