Compare commits

...

6 Commits

Author SHA1 Message Date
df15d609c8 chore(deps): update dependency sass to v1.88.0 2025-05-13 02:02:19 +00:00
ngn
bde980536d
fix the example docker compose file
Some checks failed
ups / ups (push) Failing after 39s
Signed-off-by: ngn <ngn@ngn.tf>
2025-05-13 01:51:13 +03:00
ngn
e6ebf6ca78
remove the depend docker command
All checks were successful
docker / docker (push) Successful in 1m39s
Signed-off-by: ngn <ngn@ngn.tf>
2025-05-13 01:43:26 +03:00
ngn
9a16fa65c9
attempt to fix the broken pnpm docker command
All checks were successful
docker / docker (push) Successful in 1m46s
Signed-off-by: ngn <ngn@ngn.tf>
2025-05-13 01:35:05 +03:00
ngn
8ba89d1885
fix the pnpm-lock issue
Some checks failed
docker / docker (push) Failing after 12s
Signed-off-by: ngn <ngn@ngn.tf>
2025-05-13 01:29:21 +03:00
ngn
10772a8d6f
add the ups workflow
Some checks failed
docker / docker (push) Failing after 20s
Signed-off-by: ngn <ngn@ngn.tf>
2025-05-13 01:09:41 +03:00
7 changed files with 1970 additions and 1489 deletions

View File

@ -1,28 +1,34 @@
name: Build and publish the docker image name: docker
on: on:
push: push:
branches: ["custom"] branches:
- "main"
paths-ignore:
- "README.md"
- "LICENSE.txt"
- "docker-compose.example.yml"
- "ups.json"
env: env:
REGISTRY: git.ngn.tf REGISTRY: git.ngn.tf
IMAGE: ${{gitea.repository}} IMAGE: ${{gitea.repository}}
jobs: jobs:
build: docker:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: "https://github.com/actions/checkout@v4" uses: actions/checkout@v4
- name: Login to container repo - name: Login to container repo
uses: "https://github.com/docker/login-action@v1" uses: docker/login-action@v1
with: with:
registry: ${{env.REGISTRY}} registry: ${{env.REGISTRY}}
username: ${{gitea.actor}} username: ${{gitea.actor}}
password: ${{secrets.PACKAGES_TOKEN}} password: ${{secrets.PACKAGES_TOKEN}}
- name: Build image - name: Build docker image
run: | run: |
docker build . --tag ${{env.REGISTRY}}/${{env.IMAGE}}:latest docker build . --tag ${{env.REGISTRY}}/${{env.IMAGE}}:latest
docker push ${{env.REGISTRY}}/${{env.IMAGE}}:latest docker push ${{env.REGISTRY}}/${{env.IMAGE}}:latest

25
.gitea/workflows/ups.yml Normal file
View File

@ -0,0 +1,25 @@
name: ups
on:
schedule:
- cron: "@weekly"
jobs:
ups:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo apt update -y
sudo apt install -y python3 python3-build python3-requests make
- name: Install ups
run: |
git clone https://git.ngn.tf/ngn/ups && cd ups
make && make install
- name: Run ups
run: PATH=~/.local/bin:$PATH ups-check

View File

@ -1,20 +1,12 @@
FROM node:lts-alpine AS deps
WORKDIR /app
COPY package.json pnpm-lock.yaml ./
RUN npm install -g pnpm
RUN pnpm install --frozen-lockfile
FROM node:lts-alpine AS builder FROM node:lts-alpine AS builder
WORKDIR /app WORKDIR /app
COPY . . COPY . .
COPY --from=deps /app/node_modules ./node_modules
ENV NODE_ENV=production ENV NODE_ENV=production
RUN npm install -g pnpm RUN npm install -g pnpm
RUN pnpm install
RUN pnpm build RUN pnpm build
FROM node:lts-alpine AS runner FROM node:lts-alpine AS runner

View File

@ -1,5 +1,7 @@
# [ngn.tf] | libremdb # libremdb - IMDb frontend
![](https://git.ngn.tf/ngn/libremdb/actions/workflows/build.yml/badge.svg) ![](https://git.ngn.tf/ngn/libremdb/actions/workflows/docker.yml/badge.svg)
![](https://git.ngn.tf/ngn/libremdb/actions/workflows/ups.yml/badge.svg)
A fork of the [libremdb](https://github.com/zyachel/libremdb) project, with my personal changes. A fork of the [libremdb](https://github.com/zyachel/libremdb) project, with my
personal changes.

View File

@ -8,7 +8,7 @@ services:
depends_on: depends_on:
- libremdb_redis - libremdb_redis
tmpfs: tmpfs:
- /opt/app/.next/cache/:size=10M,mode=0770,uid=65534,gid=65534,noexec,nosuid,nodev - /app/.next/cache/:size=10M,mode=0770,uid=65534,gid=65534,noexec,nosuid,nodev
security_opt: security_opt:
- no-new-privileges:true - no-new-privileges:true
cap_drop: cap_drop:

3299
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

5
ups.json Normal file
View File

@ -0,0 +1,5 @@
{
"upstream": "https://github.com/zyachel/libremdb",
"provider": "github",
"commit": "70efba181f4e1a5c2cdb64bb9adb93418763db14"
}