chitfund/.gitea/workflows/build.yaml

43 lines
1.3 KiB
YAML

name: Build and Deploy Chitfund
on: [push]
jobs:
build-backend:
runs-on: ubuntu-latest
env:
DOCKER_HOST: tcp://172.17.0.1:2375
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Debug - verify workspace and volume
run: |
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 "${{ gitea.workspace }}/backend":/test-mount \
busybox \
ls -la /test-mount/
build-frontend:
runs-on: ubuntu-latest
env:
DOCKER_HOST: tcp://172.17.0.1:2375
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Debug - verify workspace and volume
run: |
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 "${{ gitea.workspace }}/luckychit":/test-mount \
busybox \
ls -la /test-mount/