aboutsummaryrefslogtreecommitdiff
path: root/.scripts.d/30-test.sh
diff options
context:
space:
mode:
authorChristian Segundo2026-09-20 21:16:52 +0200
committerChristian Segundo2026-09-21 00:01:30 +0200
commit300188f729329139d8ed0cbd9e00d8947883cc6c (patch)
tree99fc799b34a3cc570b8db72f01e75e8c585117b8 /.scripts.d/30-test.sh
parent7f1fcd140a22d5668982a7b3ca81198f77a200d2 (diff)
downloadlanguagetool-300188f729329139d8ed0cbd9e00d8947883cc6c.tar.gz
make it work with new registry urlHEADmaster
Diffstat (limited to '.scripts.d/30-test.sh')
-rw-r--r--.scripts.d/30-test.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/.scripts.d/30-test.sh b/.scripts.d/30-test.sh
index bf84a36..4014698 100644
--- a/.scripts.d/30-test.sh
+++ b/.scripts.d/30-test.sh
@@ -41,7 +41,10 @@ fi
goss --gossfile goss.yaml render >goss-full.yaml
mv goss-full.yaml goss.yaml
-echo "${GITEA_REGISTRY_TOKEN}" |
- docker login "${REGISTRY}" -u "${GITEA_REGISTRY_USER}" --password-stdin
+mkdir -p ~/.docker
+auth=$(printf '%s:%s' "$GITEA_REGISTRY_USER" "$GITEA_REGISTRY_TOKEN" | base64 -w0)
+cat > ~/.docker/config.json <<EOF
+{"auths":{"${REGISTRY}":{"auth":"${auth}"}}}
+EOF
dgoss run "${IMAGE_NAME}"