Skip to content

Commit

Permalink
Merge pull request #1 from viet-aus-it/update-to-prisma-v6
Browse files Browse the repository at this point in the history
update to prisma v6
  • Loading branch information
samhwang authored Dec 11, 2024
2 parents b482d09 + eb1fc59 commit 85123c5
Show file tree
Hide file tree
Showing 5 changed files with 70 additions and 51 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/build-docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,32 +12,32 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Docker meta
id: docker_meta
uses: docker/metadata-action@v4
uses: docker/metadata-action@v5
with:
images: ghcr.io/viet-aus-it/prisma-migrate-service
tags: |
type=raw,latest
type=sha
- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3

- name: Login to GitHub Docker
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and Push docker image
uses: docker/build-push-action@v4
uses: docker/build-push-action@v5
with:
pull: true
push: true
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache
tags: ${{ steps.docker_meta.outputs.tags }}
tags: ${{ steps.docker_meta.outputs.tags }}
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v18
v22
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
FROM node:18.15-bullseye-slim
FROM node:22.12-slim
WORKDIR /src

COPY ./package.json ./package.json
COPY ./pnpm-lock.yaml ./pnpm-lock.yaml
RUN npm install -g pnpm@8 && \
RUN npm install -g pnpm@9 && \
pnpm install

USER node
Expand Down
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"name": "@ivet-aus-it/db-migrate-service",
"version": "1.0.0",
"description": "DB Migration Service using Prisma 5",
"version": "2.0.0",
"description": "DB Migration Service using Prisma 6",
"engines": {
"node": "^18.0.0",
"pnpm": "^8.0.0"
"node": "^22.0.0",
"pnpm": "^9.0.0"
},
"repository": {
"type": "git",
Expand All @@ -18,6 +18,6 @@
"prisma:deploy": "prisma migrate deploy"
},
"devDependencies": {
"prisma": "^5.12.0"
"prisma": "^6.0.1"
}
}
93 changes: 56 additions & 37 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 85123c5

Please sign in to comment.