ci: configure registry auth via ~/.docker/config.json using gitea.token
Build and Push Image / build (push) Failing after 28s

This commit is contained in:
nandi committed 2026-11-17 21:25:12 +00:00
1 parent bf229aeed2
commit 10650eee47
1 file changed
+9 -2
+9 -2
View File
@@ -20,9 +20,16 @@ jobs:
curl -fsSL https://depot.dev/install-cli.sh | sh
echo "$HOME/.depot/bin" >> "$GITHUB_PATH"
- name: Login to Gitea Container Registry
- name: Configure Registry Auth
env:
REG_USER: ${{ gitea.actor }}
REG_PASS: ${{ gitea.token }}
run: |
echo "${{ secrets.REGISTRY_TOKEN }}" | docker login git.site.latha.org -u "${{ github.actor }}" --password-stdin
mkdir -p "$HOME/.docker"
AUTH=$(printf '%s:%s' "$REG_USER" "$REG_PASS" | base64 -w 0)
cat > "$HOME/.docker/config.json" <<EOF
{"auths":{"git.site.latha.org":{"auth":"${AUTH}"}}}
EOF
- name: Build and Push with Depot
run: |