fix(ci): use username:token format for HTTPS git auth
Some checks failed
Build and Push Docker Image / build (push) Failing after 9s

This commit is contained in:
2026-04-25 01:00:47 +00:00
parent d212078420
commit 5a961a3f28

View File

@@ -8,8 +8,8 @@ WORKDIR /app
ARG GIT_TOKEN="" ARG GIT_TOKEN=""
RUN if [ -n "$GIT_TOKEN" ]; then \ RUN if [ -n "$GIT_TOKEN" ]; then \
git config --global url."https://${GIT_TOKEN}@gitea.ext.ben.io/".insteadOf "ssh://gitea@git.local.ben.io/" && \ git config --global url."https://b3nw:${GIT_TOKEN}@gitea.ext.ben.io/".insteadOf "ssh://gitea@git.local.ben.io/" && \
git config --global --add url."https://${GIT_TOKEN}@gitea.ext.ben.io/".insteadOf "ssh://git.local.ben.io/"; \ git config --global --add url."https://b3nw:${GIT_TOKEN}@gitea.ext.ben.io/".insteadOf "ssh://git.local.ben.io/"; \
fi fi
COPY pyproject.toml uv.lock ./ COPY pyproject.toml uv.lock ./