Skip to content

Commit 72caefb

Browse files
committed
Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer into webhook-rewrite
2 parents a4a42e3 + 894cd48 commit 72caefb

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+2860
-893
lines changed

.github/pull_request_template.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
- [ ] I agree to license my contribution under AGPL-3.0-only with my contribution automatically being licensed under LGPL-3.0 additionally after 6 months
2+
3+
***

.github/workflows/ci.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,10 @@ jobs:
1313

1414
steps:
1515
# Initialization
16-
- uses: actions/checkout@v2
17-
- uses: actions/setup-node@v2
16+
- uses: actions/checkout@v3
17+
- uses: actions/setup-node@v3
18+
with:
19+
node-version: 18
1820
- run: npm install
1921
- name: Run Tests
2022
timeout-minutes: 5

.github/workflows/eslint.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,10 @@ jobs:
1313

1414
steps:
1515
# Initialization
16-
- uses: actions/checkout@v2
17-
- uses: actions/setup-node@v2
16+
- uses: actions/checkout@v3
17+
- uses: actions/setup-node@v3
18+
with:
19+
node-version: 18
1820
- run: npm install
1921
- name: Run Tests
2022
timeout-minutes: 5

.github/workflows/generate-sqlite-base.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,18 @@ jobs:
1414
runs-on: ubuntu-latest
1515

1616
steps:
17-
- uses: actions/checkout@v2
18-
- uses: actions/setup-node@v2
17+
- uses: actions/checkout@v3
18+
- uses: actions/setup-node@v3
19+
with:
20+
node-version: 18
1921
- run: npm install
2022
- name: Set config
2123
run: |
2224
echo '{"mode": "init-db-and-exit"}' > config.json
2325
- name: Run Server
2426
timeout-minutes: 10
2527
run: npm start
26-
- uses: actions/upload-artifact@v2
28+
- uses: actions/upload-artifact@v3
2729
with:
2830
name: SponsorTimesDB.db
2931
path: databases/sponsorTimes.db

.github/workflows/postgres-redis-ci.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,17 @@ jobs:
1212
runs-on: ubuntu-latest
1313

1414
steps:
15-
- uses: actions/checkout@v2
15+
- uses: actions/checkout@v3
1616
- name: Build the docker-compose stack
1717
env:
1818
PG_USER: ci_db_user
1919
PG_PASS: ci_db_pass
2020
run: docker-compose -f docker/docker-compose-ci.yml up -d
2121
- name: Check running containers
2222
run: docker ps
23-
- uses: actions/setup-node@v2
23+
- uses: actions/setup-node@v3
24+
with:
25+
node-version: 18
2426
- run: npm install
2527
- name: Run Tests
2628
env:

Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
FROM node:16-alpine as builder
1+
FROM node:18-alpine as builder
22
RUN apk add --no-cache --virtual .build-deps python3 make g++
33
COPY package.json package-lock.json tsconfig.json entrypoint.sh ./
44
COPY src src
55
RUN npm ci && npm run tsc
66

7-
FROM node:16-alpine as app
7+
FROM node:18-alpine as app
88
WORKDIR /usr/src/app
9-
RUN apk add git postgresql-client
9+
RUN apk add --no-cache git postgresql-client
1010
COPY --from=builder ./node_modules ./node_modules
1111
COPY --from=builder ./dist ./dist
1212
COPY ./.git ./.git
1313
COPY entrypoint.sh .
1414
COPY databases/*.sql databases/
1515
EXPOSE 8080
16-
CMD ./entrypoint.sh
16+
CMD ./entrypoint.sh

0 commit comments

Comments
 (0)