diff options
Diffstat (limited to '.scripts.d/30-test.sh')
| -rw-r--r-- | .scripts.d/30-test.sh | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/.scripts.d/30-test.sh b/.scripts.d/30-test.sh index a357caf..ae4e78c 100644 --- a/.scripts.d/30-test.sh +++ b/.scripts.d/30-test.sh @@ -13,10 +13,11 @@ command -v docker >/dev/null 2>&1 || { # install goss curl -fsSL https://goss.rocks/install | sh -export GOSS_SLEEP=${GOSS_SLEEP:-30} +export GOSS_SLEEP=${GOSS_SLEEP:-60} export GOSS_VARS=${GOSS_VARS:-} export GOSS_ADDITIONAL_COPY_PATH=${GOSS_ADDITIONAL_COPY_PATH:-} -export GOSS_OPTS="--format junit --no-color" +export GOSS_OPTS="--no-color" +export DEBUG=false export CONTAINER_LOG_OUTPUT=${CONTAINER_LOG_OUTPUT:-} # The default 'mount' strategy uses 'sleep infinity' to keep @@ -29,6 +30,12 @@ fi goss --gossfile goss.yaml render >goss-full.yaml mv goss-full.yaml goss.yaml -rm -rf build/reports/ -mkdir -p build/reports/ -dgoss run "chn2guevara/languagetool:${BUILD_ID}" > build/reports/goss.xml +# shellcheck disable=SC2001 +REGISTRY=$(echo "${GITHUB_SERVER_URL}" | sed -e 's|^[^/]*//||') +TAG="${GITHUB_RUN_ID}" +IMAGE_NAME="${REGISTRY}/${GITHUB_REPOSITORY,,}:${TAG}" + +echo "${GITEA_REGISTRY_TOKEN}" | + docker login "${REGISTRY}" -u "${GITEA_REGISTRY_USER}" --password-stdin + +dgoss run "${IMAGE_NAME}" |