From c4401d35ea8ad075534c36b5fea9ac4614691cb7 Mon Sep 17 00:00:00 2001 From: XFlow Deploy Date: Mon, 1 Jun 2026 12:05:00 +0500 Subject: [PATCH] =?UTF-8?q?revert(ci):=20restore=20original=20pipeline=20?= =?UTF-8?q?=E2=80=94=20network=20issue=20is=20server-side?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/deploy.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 0938fbc..05e0bf8 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -21,10 +21,15 @@ jobs: env: TOKEN: ${{ secrets.GIT_TOKEN }} run: | - # Fix DNS in Alpine container - echo "nameserver 8.8.8.8" > /etc/resolv.conf if ! command -v git >/dev/null 2>&1; then - apk add --no-cache git + if command -v apk >/dev/null 2>&1; then + apk add --no-cache git + elif command -v apt-get >/dev/null 2>&1; then + apt-get update && apt-get install -y git + else + echo "Git not found and no package manager detected" + exit 1 + fi fi CLEAN_TOKEN=$(printf '%s' "${TOKEN}" | tr -d '\r\n') git clone "http://oauth2:${CLEAN_TOKEN}@git.a-crm.controlsystem.kz/AVTEX/XFlow.git" .