From 1067ffa35a17cc0564484e2b6573a2e7d53a768f Mon Sep 17 00:00:00 2001 From: 0xWheatyz Date: Fri, 6 Mar 2026 03:09:37 +0000 Subject: [PATCH] fix: use Docker CLI with host daemon instead of buildah MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - buildah requires user namespaces which aren't available in containers - Use Docker CLI with host's Docker socket (already mounted by runner) - Keep Alpine base and optimizations (git clone, sh shell) - Simplest solution for containerized Kubernetes runners 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- .gitea/workflows/build.yaml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 20cf4d8..d0f1a75 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -15,7 +15,7 @@ jobs: - name: Install dependencies shell: sh run: | - apk add --no-cache git buildah fuse-overlayfs + apk add --no-cache git docker-cli - name: Checkout code shell: sh @@ -68,21 +68,21 @@ jobs: - name: Login to registry shell: sh run: | - echo "${{ secrets.PERSONAL_TOKEN }}" | buildah login --username "${{ gitea.actor }}" --password-stdin gitea.leeworks.dev + echo "${{ secrets.PERSONAL_TOKEN }}" | docker login gitea.leeworks.dev -u "${{ gitea.actor }}" --password-stdin - - name: Build and push with buildah + - name: Build and push with Docker shell: sh run: | - echo "Building image with buildah..." - buildah bud -t ${{ steps.tags.outputs.IMAGE_TAG }} . + echo "Building image..." + docker build -t ${{ steps.tags.outputs.IMAGE_TAG }} . echo "Pushing image..." - buildah push ${{ steps.tags.outputs.IMAGE_TAG }} + docker push ${{ steps.tags.outputs.IMAGE_TAG }} if [ "${{ steps.tags.outputs.PUSH_LATEST }}" = "true" ]; then echo "Tagging and pushing latest..." - buildah tag ${{ steps.tags.outputs.IMAGE_TAG }} ${{ steps.tags.outputs.IMAGE_LATEST }} - buildah push ${{ steps.tags.outputs.IMAGE_LATEST }} + docker tag ${{ steps.tags.outputs.IMAGE_TAG }} ${{ steps.tags.outputs.IMAGE_LATEST }} + docker push ${{ steps.tags.outputs.IMAGE_LATEST }} fi echo "Build and push completed successfully!"