Browse Source

Set env variables when running bash containers

pull/621/head
Tim Kimber 5 years ago
parent
commit
1b24a5820f
No known key found for this signature in database GPG Key ID: 3E1804964E76BD18
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      test/run-test.sh

+ 4
- 4
test/run-test.sh View File

@ -14,6 +14,10 @@ else
COMMAND="bats /getssl/test --timing"
fi
ALIAS="$OS.getssl.test"
STAGING=""
GETSSL_OS=$OS
if [[ "$OS" == *"duckdns"* ]]; then
ALIAS="${OS%-duckdns}-getssl.duckdns.org"
STAGING="--env STAGING=true --env dynamic_dns=duckdns"
@ -24,10 +28,6 @@ elif [[ "$OS" == *"dynu"* ]]; then
GETSSL_OS="${OS%-dynu}"
elif [[ "$OS" == "bash"* ]]; then
GETSSL_OS="alpine"
else
ALIAS="$OS.getssl.test"
STAGING=""
GETSSL_OS=$OS
fi
docker build --rm -f "test/Dockerfile-$OS" -t "getssl-$OS" .


Loading…
Cancel
Save