mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2026-10-22 18:48:56 +00:00
Pass GH_TOKEN to containers started during tests
This commit is contained in:
1 parent
292b2f757e
commit
c7a0f39f29
2 files changed
+2
-1
No files matched your search
@@ -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