From 5a5e61a60337630ed4ed0c989734d39a09709ea5 Mon Sep 17 00:00:00 2001 From: deepkoluguri Date: Mon, 11 May 2026 21:46:15 +0000 Subject: [PATCH] ci: use kaniko git context - clone from gitea directly, no volume mounts --- .gitea/workflows/build.yaml | 42 ++++++++++++++++--------------------- 1 file changed, 18 insertions(+), 24 deletions(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index a0f1faf..375609f 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -7,37 +7,31 @@ jobs: env: DOCKER_HOST: tcp://172.17.0.1:2375 steps: - - name: Checkout - uses: actions/checkout@v3 - - - name: Debug - verify workspace and volume + - name: Build and push Backend (Kaniko) run: | - echo "=== Workspace path ===" - echo "${{ gitea.workspace }}" - echo "=== Backend dir contents ===" - ls -la "${{ gitea.workspace }}/backend/" - echo "=== Test volume mount into a plain container ===" docker run --rm \ - -v "${{ gitea.workspace }}/backend":/test-mount \ - busybox \ - ls -la /test-mount/ + gcr.io/kaniko-project/executor:latest \ + --context=http://192.168.8.248:3000/deepkoluguri/chitfund.git \ + --context-sub-path=backend \ + --git=branch=master,single-branch=true \ + --destination=192.168.8.250:5000/chitfund-backend:latest \ + --insecure \ + --skip-tls-verify \ + --insecure-pull build-frontend: runs-on: ubuntu-latest env: DOCKER_HOST: tcp://172.17.0.1:2375 steps: - - name: Checkout - uses: actions/checkout@v3 - - - name: Debug - verify workspace and volume + - name: Build and push Frontend (Kaniko) run: | - echo "=== Workspace path ===" - echo "${{ gitea.workspace }}" - echo "=== Frontend dir contents ===" - ls -la "${{ gitea.workspace }}/luckychit/" - echo "=== Test volume mount into a plain container ===" docker run --rm \ - -v "${{ gitea.workspace }}/luckychit":/test-mount \ - busybox \ - ls -la /test-mount/ \ No newline at end of file + gcr.io/kaniko-project/executor:latest \ + --context=http://192.168.8.248:3000/deepkoluguri/chitfund.git \ + --context-sub-path=luckychit \ + --git=branch=master,single-branch=true \ + --destination=192.168.8.250:5000/chitfund-frontend:latest \ + --insecure \ + --skip-tls-verify \ + --insecure-pull \ No newline at end of file