File tree Expand file tree Collapse file tree 3 files changed +10
-8
lines changed Expand file tree Collapse file tree 3 files changed +10
-8
lines changed Original file line number Diff line number Diff line change 1
1
backend /.env
2
2
backend /.env.example
3
- backend /package-lock.json
4
3
backend /node_modules
5
4
6
5
7
6
frontend /.env
8
7
frontend /.env.example
9
- frontend /package-lock.json
10
8
frontend /node_modules
Original file line number Diff line number Diff line change 57
57
- name : Lowercase repo name
58
58
run : echo "REPO_NAME_LOWER=$(echo '${{ github.repository }}' | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV
59
59
60
+ - name : Check Docker cache
61
+ run : |
62
+ docker buildx du
63
+
60
64
- name : Build and push Docker image
61
65
uses : docker/build-push-action@v5
62
66
with :
65
69
tags : ghcr.io/${{ env.REPO_NAME_LOWER }}:${{ env.IMAGE_TAG }}
66
70
labels : ${{ steps.meta.outputs.labels }}
67
71
platforms : linux/amd64,linux/arm64
68
- cache-from : type=gha
69
- cache-to : type=gha,mode=max
72
+ cache-from : type=gha,scope=repository,mode=max
73
+ cache-to : type=gha,mode=max,scope=repository
Original file line number Diff line number Diff line change @@ -2,11 +2,11 @@ FROM node:22-bullseye AS backend-builder
2
2
3
3
WORKDIR /app
4
4
5
- COPY backend/package* .json ./
5
+ COPY backend/package.json ./package.json
6
6
7
7
RUN npm install
8
8
9
- COPY backend/ .
9
+ COPY backend/. .
10
10
11
11
RUN npx prisma generate
12
12
RUN npm run build
@@ -15,11 +15,11 @@ FROM node:22-bullseye AS frontend-builder
15
15
16
16
WORKDIR /app
17
17
18
- COPY frontend/package* .json ./
18
+ COPY frontend/package.json ./package.json
19
19
20
20
RUN npm install
21
21
22
- COPY frontend/ .
22
+ COPY frontend/. .
23
23
24
24
RUN npm run build
25
25
You can’t perform that action at this time.
0 commit comments