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