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 @@
-