File tree Expand file tree Collapse file tree 8 files changed +1055
-1414
lines changed
Expand file tree Collapse file tree 8 files changed +1055
-1414
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 1- FROM node:16 -alpine
1+ FROM node:19 -alpine
22
33LABEL maintainer=
"[email protected] " 44
@@ -14,8 +14,8 @@ USER webapp
1414WORKDIR /app
1515ENTRYPOINT ["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
2121COPY . .
Original file line number Diff line number Diff line change 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] >" ,
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}
You can’t perform that action at this time.
0 commit comments