diff options
| author | Christian Segundo | 2025-12-20 06:39:33 +0100 |
|---|---|---|
| committer | Christian Segundo | 2025-12-20 13:00:19 +0100 |
| commit | 3d3b0a86a824512b5bf89b0b8e3bd9837f927b15 (patch) | |
| tree | 78f2a1fbecf69c4084b98090ce6ba8b3f98ce3ce /.scripts.d/30-test.sh | |
| parent | a575e280350013f1c5fc837af38bf268c9172b42 (diff) | |
| download | languagetool-3d3b0a86a824512b5bf89b0b8e3bd9837f927b15.tar.gz | |
Move build to Gitea
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}" |