From 8c8c6768bdaec7bfd567abb718c6846006c214db Mon Sep 17 00:00:00 2001 From: XFlow Deploy Date: Mon, 1 Jun 2026 11:49:48 +0500 Subject: [PATCH] fix(ci): restore node:22-alpine + fix Alpine DNS for apk/git --- .gitea/workflows/deploy.yml | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 465b6bc..0938fbc 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -9,9 +9,11 @@ on: jobs: deploy: runs-on: ubuntu-latest + container: + image: node:22-alpine defaults: run: - shell: bash + shell: sh steps: - name: Checkout @@ -19,15 +21,10 @@ 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 - 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 + apk add --no-cache git fi CLEAN_TOKEN=$(printf '%s' "${TOKEN}" | tr -d '\r\n') git clone "http://oauth2:${CLEAN_TOKEN}@git.a-crm.controlsystem.kz/AVTEX/XFlow.git" .