ci: use kaniko git context - clone from gitea directly, no volume mounts
Build and Deploy Chitfund / build-backend (push) Failing after 3s Details
Build and Deploy Chitfund / build-frontend (push) Failing after 3s Details

This commit is contained in:
deepkoluguri 2026-05-11 21:46:15 +00:00
parent 17c32f1ef5
commit 5a5e61a603
1 changed files with 18 additions and 24 deletions

View File

@ -7,37 +7,31 @@ jobs:
env: env:
DOCKER_HOST: tcp://172.17.0.1:2375 DOCKER_HOST: tcp://172.17.0.1:2375
steps: steps:
- name: Checkout - name: Build and push Backend (Kaniko)
uses: actions/checkout@v3
- name: Debug - verify workspace and volume
run: | 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 \ docker run --rm \
-v "${{ gitea.workspace }}/backend":/test-mount \ gcr.io/kaniko-project/executor:latest \
busybox \ --context=http://192.168.8.248:3000/deepkoluguri/chitfund.git \
ls -la /test-mount/ --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: build-frontend:
runs-on: ubuntu-latest runs-on: ubuntu-latest
env: env:
DOCKER_HOST: tcp://172.17.0.1:2375 DOCKER_HOST: tcp://172.17.0.1:2375
steps: steps:
- name: Checkout - name: Build and push Frontend (Kaniko)
uses: actions/checkout@v3
- name: Debug - verify workspace and volume
run: | 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 \ docker run --rm \
-v "${{ gitea.workspace }}/luckychit":/test-mount \ gcr.io/kaniko-project/executor:latest \
busybox \ --context=http://192.168.8.248:3000/deepkoluguri/chitfund.git \
ls -la /test-mount/ --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