From fd552f2a2b11bb02b3350c7f552828844aac8682 Mon Sep 17 00:00:00 2001 From: Jean-Luc Makiola Date: Mon, 23 Feb 2026 19:26:57 +0100 Subject: [PATCH] ci: replace actions/checkout with manual git clone for node-less container --- .gitea/workflows/build-and-push.yml | 8 +++++++- .idea/vcs.xml | 6 ++++++ 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 .idea/vcs.xml diff --git a/.gitea/workflows/build-and-push.yml b/.gitea/workflows/build-and-push.yml index 2c2abd1..7c8832e 100644 --- a/.gitea/workflows/build-and-push.yml +++ b/.gitea/workflows/build-and-push.yml @@ -23,7 +23,13 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v4 + run: | + apk add --no-cache git + GITEA_HOST="${{ gitea.server_url }}" + GITEA_HOST="${GITEA_HOST#https://}" + GITEA_HOST="${GITEA_HOST#http://}" + git clone "https://oauth2:${{ secrets.GITEA_TOKEN }}@${GITEA_HOST}/${{ gitea.repository }}.git" . + git checkout ${{ gitea.sha }} - name: Log in to Gitea registry run: | diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..94a25f7 --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file