Prefer Gitea job token for registry login
Build and deploy Flutter Web / build (push) Failing after 8s

This commit is contained in:
Ruslan Bakiev
2026-06-23 00:03:18 +07:00
parent 35e3624802
commit 76c5ec8dfb
+7 -2
View File
@@ -24,11 +24,16 @@ jobs:
REGISTRY_USERNAME: ${{ secrets.REGISTRY_USERNAME }}
REGISTRY_TOKEN: ${{ secrets.REGISTRY_TOKEN }}
GITEA_ACTOR: ${{ github.actor }}
GITEA_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITEA_TOKEN: ${{ github.token }}
run: |
set -euo pipefail
if [ -n "${GITEA_TOKEN:-}" ]; then
if printf '%s' "$GITEA_TOKEN" | docker login gitea.dsrptlab.com -u "$GITEA_ACTOR" --password-stdin; then
exit 0
fi
fi
username="${REGISTRY_USERNAME:-$GITEA_ACTOR}"
token="${REGISTRY_TOKEN:-$GITEA_TOKEN}"
token="${REGISTRY_TOKEN:-}"
test -n "$username"
test -n "$token"
printf '%s' "$token" | docker login gitea.dsrptlab.com -u "$username" --password-stdin