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 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; + } +}