Compare commits
12 Commits
96610389e3
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
340b5967f2
|
|||
|
690a95e878
|
|||
|
f4d0073b3b
|
|||
|
50ef2a7b9e
|
|||
|
64becee114
|
|||
|
0f1f1f3388
|
|||
| 49570baa5a | |||
| dcf12e9530 | |||
| ac0b565477 | |||
|
35b89aca72
|
|||
| 2e80adab15 | |||
|
09a2afa41a
|
64
.gitea/workflows/docker.yaml
Normal file
64
.gitea/workflows/docker.yaml
Normal file
@@ -0,0 +1,64 @@
|
||||
name: Build
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: ["main"]
|
||||
# Publish semver tags as releases.
|
||||
tags: ["v*.*.*"]
|
||||
pull_request:
|
||||
branches: ["main"]
|
||||
schedule:
|
||||
- cron: "0 1 * * *"
|
||||
workflow_dispatch:
|
||||
|
||||
env:
|
||||
# # Use docker.io for Docker Hub if empty
|
||||
REGISTRY: gitea.marijndoeve.nl
|
||||
# github.repository as <account>/<repo>
|
||||
IMAGE_NAME: ${{ gitea.repository }}
|
||||
GITHUB_TOKEB: ""
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Build Image
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: read
|
||||
packages: write
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v3
|
||||
|
||||
# Workaround: https://gitea.com/docker/build-push-action/issues/461
|
||||
- name: Setup Docker buildx
|
||||
uses: docker/setup-buildx-action@v2
|
||||
|
||||
# Login against a Docker registry except on PR
|
||||
# https://github.com/docker/login-action
|
||||
- name: Log into registry ${{ env.REGISTRY }}
|
||||
if: gitea.event_name != 'pull_request'
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
registry: ${{ env.REGISTRY }}
|
||||
username: ${{ gitea.actor }}
|
||||
password: ${{ secrets.GITEA_TOKEN }}
|
||||
|
||||
# Extract metadata (tags, labels) for Docker
|
||||
# https://github.com/docker/metadata-action
|
||||
# - name: Extract Docker metadata
|
||||
# id: meta
|
||||
# uses: docker/metadata-action@v4
|
||||
# with:
|
||||
# images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
|
||||
|
||||
# Build and push Docker image with Buildx (don't push on PR)
|
||||
# https://github.com/docker/build-push-action
|
||||
- name: Build and push Docker image
|
||||
id: build-and-push
|
||||
uses: docker/build-push-action@v2
|
||||
with:
|
||||
context: .
|
||||
file: docker/web/Containerfile
|
||||
push: ${{ gitea.event_name != 'pull_request' }}
|
||||
tags: latest
|
||||
@@ -72,12 +72,12 @@ services:
|
||||
ports:
|
||||
- "24454:24454/udp" # Voice mod
|
||||
environment:
|
||||
MODRINTH_PROJECTS: "fabric-api,lithium,phosphor,view-distance-fix,shulkerboxtooltip,simple-voice-chat,audioplayer"
|
||||
MODRINTH_PROJECTS: "fabric-api,lithium,view-distance-fix,shulkerboxtooltip,simple-voice-chat,audioplayer"
|
||||
MODRINTH_DOWNLOAD_OPTIONAL_DEPENDENCIES: "FALSE"
|
||||
# Server
|
||||
EULA: "TRUE"
|
||||
TYPE: FABRIC
|
||||
VERSION: 1.19.3
|
||||
VERSION: 1.20.1
|
||||
INIT_MEMORY: 1G
|
||||
MAX_MEMORY: 12G
|
||||
TZ: Europe/Amsterdam
|
||||
@@ -93,7 +93,7 @@ services:
|
||||
SEED: 7644964991330705000
|
||||
SPAWN_PROTECTION: 0
|
||||
MAX_TICK_TIME: -1
|
||||
MOTD: "One Minecraft Boys 3: Harmitcraft"
|
||||
MOTD: "One Minecraft Boys 3: Harmitcraft (1.20!)"
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- /opt/omb3/data:/data
|
||||
|
||||
5
docker/web/Containerfile
Normal file
5
docker/web/Containerfile
Normal file
@@ -0,0 +1,5 @@
|
||||
FROM php:8.2-apache
|
||||
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y libpq-dev \
|
||||
&& docker-php-ext-install pdo_pgsql
|
||||
Reference in New Issue
Block a user