diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 3363f74..a0f1faf 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -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 \ No newline at end of file + -v "${{ gitea.workspace }}/luckychit":/test-mount \ + busybox \ + ls -la /test-mount/ \ No newline at end of file