mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2026-06-27 04:24:17 +00:00
Pass GH_TOKEN to containers started during tests
This commit is contained in:
@@ -16,6 +16,7 @@ fullMinecraftUpTest(){
|
||||
--attach-dependencies
|
||||
--always-recreate-deps
|
||||
--abort-on-container-failure
|
||||
-e GH_TOKEN="${GH_TOKEN:-}"
|
||||
)
|
||||
if ! docker compose -f "$file" up "${upArgs[@]}" monitor; then
|
||||
echo "$(dirname "$file") Result: failed"
|
||||
|
||||
@@ -46,7 +46,7 @@ setupOnlyMinecraftTest(){
|
||||
start=$(date +%s)
|
||||
status=PASSED
|
||||
verify=
|
||||
if ! logs=$(docker compose run --rm -e SETUP_ONLY=true -e DEBUG="${DEBUG:-false}" mc 2>&1); then
|
||||
if ! logs=$(docker compose run --rm -e SETUP_ONLY=true -e DEBUG="${DEBUG:-false}" -e GH_TOKEN="${GH_TOKEN:-}" mc 2>&1); then
|
||||
status=FAILED
|
||||
outputContainerLog "$logs"
|
||||
result=1
|
||||
|
||||
Reference in New Issue
Block a user