Skip to content

Commit 0aa6226

Browse files
committed
1.2.1, update database
1 parent 4a653e5 commit 0aa6226

File tree

8 files changed

+1055
-1414
lines changed

8 files changed

+1055
-1414
lines changed
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: Build Releases
2+
on:
3+
push:
4+
branches:
5+
- master
6+
7+
env:
8+
IMAGE_NAME: ipdb-api/server
9+
10+
jobs:
11+
build-cross:
12+
runs-on: ubuntu-latest
13+
permissions:
14+
checks: read
15+
contents: read
16+
packages: write
17+
steps:
18+
-
19+
name: Checkout
20+
uses: actions/checkout@v3
21+
with:
22+
token: ${{ github.token }}
23+
-
24+
name: Set up QEMU
25+
uses: docker/setup-qemu-action@v2
26+
-
27+
name: Setup Docker Buildx
28+
uses: docker/setup-buildx-action@v1
29+
-
30+
name: Login to GitHub Container Registry
31+
uses: docker/login-action@v2
32+
with:
33+
registry: ghcr.io
34+
username: ${{ github.repository_owner }}
35+
password: ${{ github.token }}
36+
-
37+
name: Parse Version from package.json
38+
run: |
39+
echo IMAGE_VERSION=$(node -p "require('./package.json').version") >> $GITHUB_ENV
40+
-
41+
name: Build and release Docker images
42+
uses: docker/build-push-action@v4
43+
with:
44+
file: Dockerfile
45+
platforms: linux/amd64,linux/arm64
46+
tags: |
47+
ghcr.io/${{ github.repository_owner }}/${{ env.IMAGE_NAME }}:${{ env.IMAGE_VERSION }}
48+
ghcr.io/${{ github.repository_owner }}/${{ env.IMAGE_NAME }}:latest
49+
push: true

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:16-alpine
1+
FROM node:19-alpine
22

33
LABEL maintainer="[email protected]"
44

@@ -14,8 +14,8 @@ USER webapp
1414
WORKDIR /app
1515
ENTRYPOINT ["yarn", "start"]
1616

17-
COPY package.json yarn.lock /app/
17+
COPY package.json pnpm-lock.yaml /app/
1818

19-
RUN yarn
19+
RUN corepack enable && pnpm i
2020

2121
COPY . .

package.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "docker-ipdb",
3-
"version": "1.2.0",
3+
"version": "1.2.1",
44
"main": "server.js",
55
"repository": "[email protected]:metowolf/docker-ipdb.git",
66
"author": "metowolf <[email protected]>",
@@ -11,18 +11,18 @@
1111
"dependencies": {
1212
"@ipdb/database": "^2019.7.3",
1313
"@ipdb/range": "^0.1.1",
14-
"dotenv-flow": "^3.2.0",
14+
"dotenv-flow": "^3.3.0",
1515
"ipdb": "^0.3.3",
16-
"koa": "^2.13.1",
17-
"koa-helmet": "^6.1.0",
18-
"koa-pino-logger": "^3.0.0",
19-
"koa-router": "^10.0.0",
16+
"koa": "^2.14.2",
17+
"koa-helmet": "^7.0.2",
18+
"koa-pino-logger": "^4.0.0",
19+
"koa-router": "^12.0.0",
2020
"koa2-cors": "^2.0.6",
21-
"pino": "^6.12.0",
22-
"pino-pretty": "^5.1.1",
23-
"qqwry.ipdb": "^2021.7.7"
21+
"pino": "^8.15.0",
22+
"pino-pretty": "^10.2.0",
23+
"qqwry.ipdb": "^2023.8.23"
2424
},
2525
"devDependencies": {
26-
"nodemon": "^2.0.12"
26+
"nodemon": "^3.0.1"
2727
}
2828
}

0 commit comments

Comments
 (0)