ci: fix kaniko context - mount full repo at /repo, point context at subdirs
Build and Deploy Chitfund / build-backend (push) Failing after 9s Details
Build and Deploy Chitfund / build-frontend (push) Failing after 9s Details

This commit is contained in:
deepkoluguri 2026-05-11 21:27:48 +00:00
parent 2dbf55bff1
commit 15a7234fa4
1 changed files with 8 additions and 6 deletions

View File

@ -12,11 +12,12 @@ jobs:
- name: Build and push Backend (Kaniko)
run: |
WORKSPACE="${{ gitea.workspace }}"
docker run --rm \
-v "${{ gitea.workspace }}/backend":/workspace \
-v "${WORKSPACE}:/repo" \
gcr.io/kaniko-project/executor:latest \
--context=dir:///workspace \
--dockerfile=/workspace/Dockerfile \
--context=dir:///repo/backend \
--dockerfile=/repo/backend/Dockerfile \
--destination=192.168.8.250:5000/chitfund-backend:latest \
--insecure \
--skip-tls-verify
@ -31,11 +32,12 @@ jobs:
- name: Build and push Frontend (Kaniko)
run: |
WORKSPACE="${{ gitea.workspace }}"
docker run --rm \
-v "${{ gitea.workspace }}/luckychit":/workspace \
-v "${WORKSPACE}:/repo" \
gcr.io/kaniko-project/executor:latest \
--context=dir:///workspace \
--dockerfile=/workspace/Dockerfile \
--context=dir:///repo/luckychit \
--dockerfile=/repo/luckychit/Dockerfile \
--destination=192.168.8.250:5000/chitfund-frontend:latest \
--insecure \
--skip-tls-verify