Compare commits

..

14 Commits

Author SHA1 Message Date
3e49d3306f chore(deps): update dependency sass to v1.83.4 2025-01-20 03:02:42 +00:00
ngn
0f88c28794 Merge pull request 'fix(deps): update dependency ioredis to v5.4.2' (#8) from renovate/ioredis-5.x-lockfile into custom
Some checks failed
Build and publish the docker image / build (push) Failing after 42s
Reviewed-on: #8
2025-01-20 03:00:03 +00:00
ngn
df4bfa2942 Merge branch 'custom' into renovate/ioredis-5.x-lockfile 2025-01-20 02:59:55 +00:00
ngn
3f99f93f5d Merge pull request 'fix(deps): update dependency axios to ^0.29.0' (#7) from renovate/axios-0.x into custom
Some checks are pending
Build and publish the docker image / build (push) Waiting to run
Reviewed-on: #7
2025-01-20 02:59:43 +00:00
ngn
131ea607ef Merge branch 'custom' into renovate/axios-0.x 2025-01-20 02:59:34 +00:00
ngn
ea6601bf49 Merge pull request 'chore(deps): update dependency @types/node to v18.19.71' (#3) from renovate/node-18.x into custom
Some checks are pending
Build and publish the docker image / build (push) Waiting to run
Reviewed-on: #3
2025-01-20 02:59:20 +00:00
ngn
663746b453 Merge branch 'custom' into renovate/node-18.x 2025-01-20 02:59:11 +00:00
ngn
35791cfc4d Merge pull request 'fix(deps): update dependency sharp to v0.33.5' (#2) from renovate/sharp-0.x-lockfile into custom
Some checks are pending
Build and publish the docker image / build (push) Waiting to run
Reviewed-on: #2
2025-01-20 02:59:05 +00:00
d54a92af3d fix(deps): update dependency ioredis to v5.4.2 2025-01-20 02:01:22 +00:00
7d009e7d4e fix(deps): update dependency axios to ^0.29.0 2025-01-20 02:01:16 +00:00
f061ab2ec5 chore(deps): update dependency @types/node to v18.19.71 2025-01-20 02:00:53 +00:00
497f61bac4 fix(deps): update dependency sharp to v0.33.5 2025-01-20 02:00:47 +00:00
ngn
70440fc389 Merge pull request 'fix(deps): update dependency cheerio to v1.0.0' (#1) from renovate/cheerio-1.x into custom
Some checks failed
Build and publish the docker image / build (push) Failing after 37s
Reviewed-on: #1
2025-01-20 01:34:49 +00:00
536abc4ecb fix(deps): update dependency cheerio to v1.0.0 2025-01-20 01:00:46 +00:00
8 changed files with 377 additions and 333 deletions

View File

@ -1,34 +1,28 @@
name: docker name: Build and publish the docker image
on: on:
push: push:
branches: branches: ["custom"]
- "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:
docker: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v4 uses: "https://github.com/actions/checkout@v4"
- name: Login to container repo - name: Login to container repo
uses: docker/login-action@v1 uses: "https://github.com/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 docker image - name: Build 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

View File

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

View File

@ -8,7 +8,7 @@ services:
depends_on: depends_on:
- libremdb_redis - libremdb_redis
tmpfs: tmpfs:
- /app/.next/cache/:size=10M,mode=0770,uid=65534,gid=65534,noexec,nosuid,nodev - /opt/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:

View File

@ -17,8 +17,8 @@
"lint": "next lint" "lint": "next lint"
}, },
"dependencies": { "dependencies": {
"axios": "^0.27.2", "axios": "^0.29.0",
"cheerio": "1.0.0-rc.12", "cheerio": "1.0.0",
"ioredis": "^5.3.2", "ioredis": "^5.3.2",
"next": "12.2.5", "next": "12.2.5",
"react": "18.2.0", "react": "18.2.0",
@ -26,7 +26,7 @@
"sharp": "^0.33.1" "sharp": "^0.33.1"
}, },
"devDependencies": { "devDependencies": {
"@types/node": "18.7.3", "@types/node": "18.19.71",
"@types/react": "18.0.17", "@types/react": "18.0.17",
"@types/react-dom": "18.0.6", "@types/react-dom": "18.0.6",
"eslint": "8.22.0", "eslint": "8.22.0",

622
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

View File

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