mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2026-02-17 07:03:57 +00:00
Download and use packwiz from Maven repository (#1725)
Also * Added github actions debug support * added use of fileNotExists
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
mc-image-helper assert fileExists world/level.dat && \
|
||||
mc-image-helper assert fileExists world_nether/DIM-1/some_spigot_nether_file && \
|
||||
mc-image-helper assert fileExists world_the_end/DIM1/some_spigot_end_file && \
|
||||
! mc-image-helper assert fileExists world_nether/DIM-1/some_vanilla_nether_file && \
|
||||
! mc-image-helper assert fileExists world_the_end/DIM1/some_vanilla_end_file
|
||||
mc-image-helper assert fileExists \
|
||||
world/level.dat \
|
||||
world_nether/DIM-1/some_spigot_nether_file \
|
||||
world_the_end/DIM1/some_spigot_end_file
|
||||
mc-image-helper assert fileNotExists \
|
||||
world_nether/DIM-1/some_vanilla_nether_file \
|
||||
world_the_end/DIM1/some_vanilla_end_file
|
||||
|
||||
@@ -11,11 +11,11 @@ services:
|
||||
image: ${IMAGE_TO_TEST:-itzg/minecraft-server}
|
||||
environment:
|
||||
EULA: "true"
|
||||
SETUP_ONLY: "true"
|
||||
PACKWIZ_URL: http://web/pack.toml
|
||||
TYPE: CUSTOM
|
||||
CUSTOM_SERVER: /servers/fake.jar
|
||||
VERSION: 1.19
|
||||
DEBUG_HELPER: "true"
|
||||
volumes:
|
||||
- ./data:/data
|
||||
- ./fake.jar:/servers/fake.jar
|
||||
|
||||
@@ -39,8 +39,10 @@ setupOnlyMinecraftTest(){
|
||||
fi
|
||||
fi
|
||||
|
||||
# false positive since it's used in delta calculations below
|
||||
# shellcheck disable=SC2034
|
||||
start=$(date +%s)
|
||||
if ! logs=$(docker compose run mc 2>&1); then
|
||||
if ! logs=$(docker compose run --rm -e SETUP_ONLY=true -e DEBUG="${DEBUG:-false}" mc 2>&1); then
|
||||
outputContainerLog "$logs"
|
||||
result=1
|
||||
elif [ -f verify.sh ]; then
|
||||
|
||||
Reference in New Issue
Block a user