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