mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2026-11-10 10:41:00 +00:00
Auto-merging via docker-versions-create
This commit is contained in:
commit
d34be9f20e
4 files changed
+8
-27
No files matched your search
@@ -19,18 +19,7 @@ env:
|
|||||||
IMAGE_TO_TEST: itzg/minecraft-server:test-${{ github.repository_owner }}-${{ github.run_id }}
|
IMAGE_TO_TEST: itzg/minecraft-server:test-${{ github.repository_owner }}-${{ github.run_id }}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
|
||||||
runs-on: ubuntu-20.04
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2.4.0
|
|
||||||
|
|
||||||
- name: Run tests
|
|
||||||
run: |
|
|
||||||
tests/test.sh
|
|
||||||
build:
|
build:
|
||||||
needs:
|
|
||||||
- test
|
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
@@ -65,7 +54,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Build for test
|
- name: Build for test
|
||||||
uses: docker/build-push-action@v2.7.0
|
uses: docker/build-push-action@v2.7.0
|
||||||
if: github.ref_name == 'master'
|
if: github.ref_name == 'java8'
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
platforms: linux/amd64
|
platforms: linux/amd64
|
||||||
@@ -78,9 +67,11 @@ jobs:
|
|||||||
cache-to: type=gha,mode=max
|
cache-to: type=gha,mode=max
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
if: github.ref_name == 'master'
|
if: github.ref_name == 'java8'
|
||||||
run: |
|
run: |
|
||||||
tests/test.sh
|
tests/test.sh
|
||||||
|
env:
|
||||||
|
MINECRAFT_VERSION: 1.12.2
|
||||||
|
|
||||||
- name: Build and push
|
- name: Build and push
|
||||||
id: docker_build
|
id: docker_build
|
||||||
|
|||||||
@@ -85,6 +85,9 @@ if [ -n "$JVM_DD_OPTS" ]; then
|
|||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Patch Log4j remote code execution vulnerability
|
||||||
|
JVM_OPTS="-Dlog4j2.formatMsgNoLookups=true ${JVM_OPTS}"
|
||||||
|
|
||||||
if isTrue ${ENABLE_JMX}; then
|
if isTrue ${ENABLE_JMX}; then
|
||||||
: ${JMX_PORT:=7091}
|
: ${JMX_PORT:=7091}
|
||||||
JVM_OPTS="${JVM_OPTS}
|
JVM_OPTS="${JVM_OPTS}
|
||||||
|
|||||||
@@ -1,14 +0,0 @@
|
|||||||
version: "3.8"
|
|
||||||
|
|
||||||
services:
|
|
||||||
monitor:
|
|
||||||
depends_on:
|
|
||||||
- mc
|
|
||||||
image: itzg/mc-monitor:${MC_MONITOR_VERSION:-0.10.4}
|
|
||||||
command: --debug status --host mc --retry-interval 1s --retry-limit 240
|
|
||||||
mc:
|
|
||||||
restart: "no"
|
|
||||||
image: ${IMAGE_TO_TEST:-itzg/minecraft-server}
|
|
||||||
environment:
|
|
||||||
EULA: "TRUE"
|
|
||||||
|
|
||||||
@@ -11,4 +11,5 @@ services:
|
|||||||
image: ${IMAGE_TO_TEST:-itzg/minecraft-server}
|
image: ${IMAGE_TO_TEST:-itzg/minecraft-server}
|
||||||
environment:
|
environment:
|
||||||
EULA: "TRUE"
|
EULA: "TRUE"
|
||||||
|
VERSION: ${MINECRAFT_VERSION:-LATEST}
|
||||||
|
|
||||||
Reference in new issue
Block a user