ci: debug volume mount before kaniko
This commit is contained in:
parent
b14dad3a3b
commit
17c32f1ef5
|
|
@ -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
|
|
||||||
Loading…
Reference in New Issue