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