From fe46f49b6744b5b5edc37f9b87b2e77e364043a9 Mon Sep 17 00:00:00 2001 From: AlexIves16 Date: Mon, 1 Jun 2026 15:51:31 +0500 Subject: [PATCH] chore: change job container image to node:22 and update checkout script --- .gitea/workflows/deploy.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 73ffce4..b766d04 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -10,7 +10,7 @@ jobs: deploy: runs-on: ubuntu-latest container: - image: node:22-alpine + image: node:22 defaults: run: shell: sh @@ -18,7 +18,13 @@ jobs: steps: - name: Checkout run: | - apk add --no-cache git + 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 + fi + fi if [ ! -d ".git" ]; then git init git remote add origin http://oauth2:${{ secrets.GIT_TOKEN }}@git.a-crm.controlsystem.kz/AVTEX/XFlow.git