diff --git a/.dockerignore b/.dockerignore index e69de29..0ede9bb 100644 --- a/.dockerignore +++ b/.dockerignore @@ -0,0 +1,8 @@ +node_modules +.next +.git +.gitea +.env*.local +README.md +Dockerfile +.dockerignore \ No newline at end of file diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml new file mode 100644 index 0000000..148b1e1 --- /dev/null +++ b/.gitea/workflows/deploy.yml @@ -0,0 +1,31 @@ +name: Build and push + +on: + push: + branches: [main] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - uses: docker/setup-buildx-action@v3 + + - name: Login to Gitea registry + uses: docker/login-action@v3 + with: + registry: docker.allmy.work + username: ${{ gitea.actor }} + password: ${{ secrets.REGISTRY_TOKEN }} + + - name: Build and push + uses: docker/build-push-action@v6 + with: + context: . + push: true + tags: | + docker.allmy.work/${{ gitea.repository }}:latest + docker.allmy.work/${{ gitea.repository }}:${{ gitea.sha }} + cache-from: type=registry,ref=docker.allmy.work/${{ gitea.repository }}:buildcache + cache-to: type=registry,ref=docker.allmy.work/${{ gitea.repository }}:buildcache,mode=max \ No newline at end of file diff --git a/.gitignore b/.gitignore index 10734e9..8cdd235 100644 --- a/.gitignore +++ b/.gitignore @@ -55,6 +55,7 @@ next-env.d.ts !/.gitattributes !/.gitignore !/.dockerignore +!/.gitea !/biome.json *storybook.log diff --git a/app/[[...slug]]/page.tsx b/app/[[...slug]]/page.tsx index 00450ec..6cc7a73 100644 --- a/app/[[...slug]]/page.tsx +++ b/app/[[...slug]]/page.tsx @@ -41,7 +41,7 @@ export default async function SectionPage({ params }: Props) { } return ( -
+
{sections.map((s) => ( diff --git a/app/layout.tsx b/app/layout.tsx index 80d4e48..3060eac 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -14,7 +14,7 @@ export const metadata: Metadata = { export default function RootLayout({ children }: { children: React.ReactNode }) { return ( - + {children}