diff --git a/.gitea/workflows/pipeline-test.yml b/.gitea/workflows/pipeline-test.yml new file mode 100644 index 0000000..059a8f0 --- /dev/null +++ b/.gitea/workflows/pipeline-test.yml @@ -0,0 +1,45 @@ +name: Build and Deploy Docker Image + +on: + push: + branches: + - ci-build + +jobs: + build: + runs-on: docker + steps: + + - name: Checkout code + uses: actions/checkout@v4 + + - name: Log in to Red Hat Registry + uses: https://github.com/redhat-actions/podman-login@v1 + with: + password: ${{ secrets.PASSWORD }} + username: ${{ secrets.USERNAME }} + registry: git.thecodedom.com + + + - name: Buildah Action + uses: https://github.com/redhat-actions/buildah-build@v2 + with: + image: my-new-image + tags: test + containerfiles: | + ./Dockerfile + + # - name: Set up Docker Buildx + # uses: docker/setup-buildx-action@v2 + # + # - name: Log in to Gitea Container Registry + # uses: docker/login-action@v3 + # with: + # + # - name: Build and push Docker image + # uses: docker/build-push-action@v6 + # with: + # context: . + # push: true + # tags: git.thecodedom.com/dotechbro/dotechbro-website:latest + diff --git a/CLAUDE.md b/CLAUDE.md deleted file mode 100644 index 7ca7731..0000000 --- a/CLAUDE.md +++ /dev/null @@ -1,26 +0,0 @@ -# Development Guide - -## Commands -- **Start dev server**: `npm run dev` -- **Build for production**: `npm run build` -- **Lint code**: `npm run lint` -- **Preview production build**: `npm run preview` - -## Code Style Guidelines -- **React Components**: Use functional components with hooks -- **Imports**: Group imports by: React/libraries, components, styles/assets -- **Formatting**: Use 2-space indentation, semicolons, single quotes -- **Naming**: - - Components: PascalCase (e.g., `Header.jsx`) - - Functions/variables: camelCase - - Files: Component files use .jsx extension -- **CSS**: Use Tailwind utility classes with component-specific CSS when needed -- **Error Handling**: Use try/catch blocks and provide user-friendly error messages -- **Props**: Use destructuring for component props -- **State Management**: Use React hooks (useState, useEffect) for component state - -## Tech Stack -- React 18 w/ functional components -- React Router for navigation -- Tailwind CSS for styling -- Vite for build tool \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index 11d4ae5..0112f8b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -22,10 +22,6 @@ FROM nginx:alpine # Copy the built application from the previous stage COPY --from=build /app/dist /usr/share/nginx/html -COPY dotechbro_nginx.conf /etc/nginx/conf.d/default.conf - -COPY nginx.conf /etc/nginx/nginx.conf - # Expose port 80 EXPOSE 80 diff --git a/dotechbro_nginx.conf b/dotechbro_nginx.conf deleted file mode 100644 index 988283a..0000000 --- a/dotechbro_nginx.conf +++ /dev/null @@ -1,9 +0,0 @@ -server { - listen 80; - server_name localhost; - location / { - root /usr/share/nginx/html; - index index.html index.htm; - try_files $uri $uri/ /index.html =404; - } -} \ No newline at end of file diff --git a/index.html b/index.html index 8475459..9e81bd6 100644 --- a/index.html +++ b/index.html @@ -14,10 +14,5 @@
- diff --git a/nginx.conf b/nginx.conf deleted file mode 100644 index 188ed2e..0000000 --- a/nginx.conf +++ /dev/null @@ -1,52 +0,0 @@ -user nginx; -worker_processes auto; - -error_log /var/log/nginx/error.log notice; -pid /var/run/nginx.pid; - - -events { - worker_connections 1024; -} - - -http { - include /etc/nginx/mime.types; - default_type application/octet-stream; - - log_format main '$remote_addr - $remote_user [$time_local] "$request" ' - '$status $body_bytes_sent "$http_referer" ' - '"$http_user_agent" "$http_x_forwarded_for" - "$http_cf_connecting_ip"'; - - access_log /var/log/nginx/access.log main; - - sendfile on; - #tcp_nopush on; - - keepalive_timeout 65; - server_tokens off; - - #gzip on; - - # CloudFlare Ips - real_ip_header CF-Connecting-IP; - set_real_ip_from 173.245.48.0/20; - set_real_ip_from 103.21.244.0/22; - set_real_ip_from 103.22.200.0/22; - set_real_ip_from 103.31.4.0/22; - set_real_ip_from 141.101.64.0/18; - set_real_ip_from 108.162.192.0/18; - set_real_ip_from 190.93.240.0/20; - set_real_ip_from 188.114.96.0/20; - set_real_ip_from 197.234.240.0/22; - set_real_ip_from 198.41.128.0/17; - set_real_ip_from 162.158.0.0/15; - set_real_ip_from 104.16.0.0/13; - set_real_ip_from 104.24.0.0/14; - set_real_ip_from 172.64.0.0/13; - set_real_ip_from 131.0.72.0/22; - - - include /etc/nginx/conf.d/*.conf; - -} \ No newline at end of file diff --git a/src/App.jsx b/src/App.jsx index 8ff12f0..975fa56 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -4,10 +4,8 @@ import { BrowserRouter as Router, Route, Routes } from 'react-router-dom'; import Header from './components/Header'; import Footer from './components/Footer'; import Home from './components/Home'; -import NotFound from './components/NotFound'; import About from './components/About'; import Roadmap from './components/Roadmap'; -import RoadmapDetail from './components/RoadmapDetail'; // Import the RoadmapDetail component const App = () => { const [menuOpen, setMenuOpen] = useState(false); @@ -23,10 +21,7 @@ const App = () => { } /> } /> - }> - } /> - - } /> + } />