Compare commits

...

16 Commits

Author SHA1 Message Date
Antigravity c35eefd2a9 Add multi-stage build to Flutter Dockerfile
Build and Deploy Chitfund / build-backend (push) Successful in 2m20s Details
Build and Deploy Chitfund / build-frontend (push) Failing after 4m13s Details
2026-05-11 18:22:03 -04:00
deepkoluguri ad10f2450a Revert to working kaniko configuration
Build and Deploy Chitfund / build-backend (push) Successful in 2m20s Details
Build and Deploy Chitfund / build-frontend (push) Successful in 1m8s Details
2026-05-11 22:04:05 +00:00
Antigravity 0edbb9c728 Fix workflow to use standard buildx
Build and Deploy Chitfund / build-backend (push) Failing after 3m55s Details
Build and Deploy Chitfund / build-frontend (push) Failing after 18s Details
2026-05-11 17:58:06 -04:00
deepkoluguri 5311eeb1b5 ci: use --volumes-from to share job container workspace with kaniko
Build and Deploy Chitfund / build-backend (push) Successful in 2m23s Details
Build and Deploy Chitfund / build-frontend (push) Successful in 1m11s Details
2026-05-11 21:49:37 +00:00
deepkoluguri 5a5e61a603 ci: use kaniko git context - clone from gitea directly, no volume mounts
Build and Deploy Chitfund / build-backend (push) Failing after 3s Details
Build and Deploy Chitfund / build-frontend (push) Failing after 3s Details
2026-05-11 21:46:15 +00:00
deepkoluguri 17c32f1ef5 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
2026-05-11 21:42:29 +00:00
deepkoluguri b14dad3a3b ci: trigger rebuild after shared-workspace volume fix
Build and Deploy Chitfund / build-backend (push) Failing after 2m16s Details
Build and Deploy Chitfund / build-frontend (push) Failing after 9s Details
2026-05-11 21:38:13 +00:00
deepkoluguri 15a7234fa4 ci: fix kaniko context - mount full repo at /repo, point context at subdirs
Build and Deploy Chitfund / build-backend (push) Failing after 9s Details
Build and Deploy Chitfund / build-frontend (push) Failing after 9s Details
2026-05-11 21:27:48 +00:00
deepkoluguri 2dbf55bff1 ci: fix workspace path - use gitea.workspace expression instead of env var
Build and Deploy Chitfund / build-backend (push) Failing after 14s Details
Build and Deploy Chitfund / build-frontend (push) Failing after 9s Details
2026-05-11 21:25:31 +00:00
deepkoluguri a74a035912 ci: use docker bridge gateway 172.17.0.1:2375 to reach dind from job containers
Build and Deploy Chitfund / build-backend (push) Failing after 2m3s Details
Build and Deploy Chitfund / build-frontend (push) Failing after 8s Details
2026-05-11 21:19:56 +00:00
deepkoluguri 8fef50ba86 ci: trigger rebuild after runner host-network fix 2026-05-11 21:17:25 +00:00
deepkoluguri 3545facd5f ci: wait for dind to be ready before running kaniko
Build and Deploy Chitfund / build-backend (push) Failing after 1m12s Details
Build and Deploy Chitfund / build-frontend (push) Failing after 1m12s Details
2026-05-11 21:03:23 +00:00
deepkoluguri d2bf305446 ci: run kaniko via docker run (no daemon in build, fixes container entrypoint issue)
Build and Deploy Chitfund / build-backend (push) Failing after 8s Details
Build and Deploy Chitfund / build-frontend (push) Failing after 8s Details
2026-05-11 20:55:01 +00:00
deepkoluguri b91e8e58a8 ci: use dind sidecar instead of kaniko - pass DOCKER_HOST explicitly
Build and Deploy Chitfund / build-backend (push) Failing after 1m22s Details
Build and Deploy Chitfund / build-frontend (push) Failing after 1m16s Details
2026-05-11 20:50:09 +00:00
deepkoluguri 0f42b53ab4 ci: switch Docker build to Kaniko (no daemon required)
Build and Deploy Chitfund / build-backend (push) Failing after 9s Details
Build and Deploy Chitfund / build-frontend (push) Failing after 1s Details
2026-05-11 20:41:26 +00:00
deepkoluguri f36d150c08 Update SETUP_COMPLETE.md
Build and Deploy Chitfund / build-backend (push) Failing after 5m47s Details
Build and Deploy Chitfund / build-frontend (push) Failing after 17s Details
2026-05-11 19:59:44 +00:00
3 changed files with 38 additions and 31 deletions

View File

@ -4,35 +4,44 @@ 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: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Build and push Backend (Kaniko)
run: |
JOB_CONTAINER=$(docker ps --format '{{.Names}}' | grep 'GITEA-ACTIONS-TASK' | head -1)
echo "Using volumes from: $JOB_CONTAINER"
- name: Build and push Backend
uses: docker/build-push-action@v4
with:
context: ./backend
push: true
tags: 192.168.8.250:5000/chitfund-backend:latest
# Local registry is insecure
labels: |
org.opencontainers.image.source=${{ gitea.repository_url }}
docker run --rm \
--volumes-from "$JOB_CONTAINER" \
gcr.io/kaniko-project/executor:latest \
--context=dir:///workspace/deepkoluguri/chitfund/backend \
--dockerfile=Dockerfile \
--destination=192.168.8.250:5000/chitfund-backend:latest \
--insecure \
--skip-tls-verify
build-frontend:
runs-on: ubuntu-latest
env:
DOCKER_HOST: tcp://172.17.0.1:2375
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Build and push Frontend (Kaniko)
run: |
JOB_CONTAINER=$(docker ps --format '{{.Names}}' | grep 'GITEA-ACTIONS-TASK' | head -1)
echo "Using volumes from: $JOB_CONTAINER"
- name: Build and push Frontend
uses: docker/build-push-action@v4
with:
context: ./luckychit
push: true
tags: 192.168.8.250:5000/chitfund-frontend:latest
docker run --rm \
--volumes-from "$JOB_CONTAINER" \
gcr.io/kaniko-project/executor:latest \
--context=dir:///workspace/deepkoluguri/chitfund/luckychit \
--dockerfile=Dockerfile \
--destination=192.168.8.250:5000/chitfund-frontend:latest \
--insecure \
--skip-tls-verify

View File

@ -4,7 +4,7 @@
Your **FREE, zero-transaction-fee UPI payment system** is ready to use!
---
----
## ✨ What You Have Now

View File

@ -1,17 +1,15 @@
# Frontend Dockerfile for Chitfund (Flutter Web)
FROM node:20-slim
FROM ghcr.io/cirruslabs/flutter:3.24.0 AS build
WORKDIR /app
# We serve the build/web directory.
# NOTE: This Dockerfile assumes you have already run 'flutter build web'
# or we will use a multi-stage build if you prefer.
# For simplicity in this home lab, we copy the build output.
COPY package*.json ./
RUN npm install express
COPY . .
RUN flutter pub get
RUN flutter build web --release
FROM node:20-slim
WORKDIR /app
RUN npm init -y && npm install express
COPY --from=build /app/build/web ./build/web
COPY web-server.js .
EXPOSE 8080