From 9fe7723d1347332f4de3d02555f0dddefa1de571 Mon Sep 17 00:00:00 2001 From: jank Date: Mon, 15 Sep 2025 08:16:34 +0200 Subject: [PATCH 1/2] fix: Fix routing --- Dockerfile | 3 ++- default.conf | 11 +++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 default.conf diff --git a/Dockerfile b/Dockerfile index ba8d41e..8d74066 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,5 @@ FROM nginx:stable-alpine COPY build/client /usr/share/nginx/html +COPY default.conf /etc/nginx/conf.d/default.conf EXPOSE 80 -CMD ["nginx", "-g", "daemon off;"] +CMD ["nginx", "-g", "daemon off;"] \ No newline at end of file diff --git a/default.conf b/default.conf new file mode 100644 index 0000000..cbb6356 --- /dev/null +++ b/default.conf @@ -0,0 +1,11 @@ +server { + listen 80; + server_name localhost; + + root /usr/share/nginx/html; + index index.html; + + location / { + try_files $uri $uri/ /index.html; + } +} From 708bd3ac9a1c42cd562fdf9de79b4439df360905 Mon Sep 17 00:00:00 2001 From: jank Date: Mon, 15 Sep 2025 08:21:53 +0200 Subject: [PATCH 2/2] feat: Add basic ci --- .forgejo/actions/setup/action.yml | 16 ++++++++++++++++ .forgejo/workflows/ci.yml | 14 ++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 .forgejo/actions/setup/action.yml create mode 100644 .forgejo/workflows/ci.yml diff --git a/.forgejo/actions/setup/action.yml b/.forgejo/actions/setup/action.yml new file mode 100644 index 0000000..b85241d --- /dev/null +++ b/.forgejo/actions/setup/action.yml @@ -0,0 +1,16 @@ +name: "Setup Environment" +description: "" + +runs: + using: "composite" + steps: + - name: Checkout + uses: actions/checkout@v4 + - uses: actions/setup-node@v5 + with: + node-version: 24 + - uses: oven-sh/setup-bun@v2 + with: + bun-version: latest + - name: Install dependencies + run: bun install diff --git a/.forgejo/workflows/ci.yml b/.forgejo/workflows/ci.yml new file mode 100644 index 0000000..d77dc70 --- /dev/null +++ b/.forgejo/workflows/ci.yml @@ -0,0 +1,14 @@ +name: CI + +on: + pull_request: + +jobs: + build: + name: Build + runs-on: ubuntu-latest + steps: + - name: setup + uses: ./.forgejo/actions/setup + - name: build + run: bun run build