From 7b61be1a4a6b192438d7aae6920705bce42b374d Mon Sep 17 00:00:00 2001 From: 0xWheatyz Date: Fri, 6 Mar 2026 02:58:28 +0000 Subject: [PATCH] fix: use sh instead of bash and replace checkout action with git MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Use sh (built into Alpine) instead of bash to avoid install errors - Replace actions/checkout@v4 with direct git clone commands - Add ca-certificates for HTTPS support - Faster and more reliable for lightweight Alpine containers 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- .gitea/workflows/build.yaml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index fda018e..324c257 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -13,19 +13,25 @@ jobs: runs-on: ubuntu-latest steps: - name: Install dependencies + shell: sh run: | - apk add --no-cache bash wget + apk add --no-cache git wget ca-certificates - name: Install Kaniko + shell: sh run: | wget -O /usr/local/bin/executor https://github.com/GoogleContainerTools/kaniko/releases/download/v1.23.2/executor-linux-amd64 chmod +x /usr/local/bin/executor - name: Checkout code - uses: actions/checkout@v4 + shell: sh + run: | + git clone https://gitea.leeworks.dev/${{ gitea.repository }}.git . + git checkout ${{ gitea.sha }} - name: Determine image tags id: tags + shell: sh run: | REGISTRY="gitea.leeworks.dev" REPO_OWNER="${{ gitea.repository_owner }}" @@ -62,6 +68,7 @@ jobs: echo "IMAGE_LATEST=${IMAGE_BASE}:latest" >> $GITHUB_OUTPUT - name: Setup Kaniko config + shell: sh run: | mkdir -p /kaniko/.docker cat > /kaniko/.docker/config.json <