ci: debug volume mount before kaniko
Build and Deploy Chitfund / build-backend (push) Successful in 11s Details
Build and Deploy Chitfund / build-frontend (push) Successful in 8s Details

This commit is contained in:
deepkoluguri 2026-05-11 21:42:29 +00:00
parent b14dad3a3b
commit 17c32f1ef5
1 changed files with 18 additions and 18 deletions

View File

@ -10,17 +10,17 @@ jobs:
- name: Checkout - name: Checkout
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: Build and push Backend (Kaniko) - name: Debug - verify workspace and volume
run: | run: |
WORKSPACE="${{ gitea.workspace }}" 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 "${WORKSPACE}:/repo" \ -v "${{ gitea.workspace }}/backend":/test-mount \
gcr.io/kaniko-project/executor:latest \ busybox \
--context=dir:///repo/backend \ ls -la /test-mount/
--dockerfile=/repo/backend/Dockerfile \
--destination=192.168.8.250:5000/chitfund-backend:latest \
--insecure \
--skip-tls-verify
build-frontend: build-frontend:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@ -30,14 +30,14 @@ jobs:
- name: Checkout - name: Checkout
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: Build and push Frontend (Kaniko) - name: Debug - verify workspace and volume
run: | run: |
WORKSPACE="${{ gitea.workspace }}" 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 "${WORKSPACE}:/repo" \ -v "${{ gitea.workspace }}/luckychit":/test-mount \
gcr.io/kaniko-project/executor:latest \ busybox \
--context=dir:///repo/luckychit \ ls -la /test-mount/
--dockerfile=/repo/luckychit/Dockerfile \
--destination=192.168.8.250:5000/chitfund-frontend:latest \
--insecure \
--skip-tls-verify