File tree Expand file tree Collapse file tree 9 files changed +19
-244
lines changed Expand file tree Collapse file tree 9 files changed +19
-244
lines changed Original file line number Diff line number Diff line change 21
21
! ** /** /.env.example
22
22
23
23
# turbo
24
- ** /.turbo
24
+ ** /.turbo
25
+ out
Original file line number Diff line number Diff line change @@ -19,13 +19,14 @@ ENV AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID}
19
19
ARG AWS_SECRET_ACCESS_KEY
20
20
ENV AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}
21
21
22
- ENV APP_DIR="apps/cron"
22
+ ENV APP_NAME="cron"
23
+ ENV APP_DIR="apps/${APP_NAME}"
23
24
24
25
WORKDIR /app
25
26
26
27
FROM base AS pruner
27
28
COPY . .
28
- RUN turbo prune cron --docker
29
+ RUN turbo prune ${APP_NAME} --docker
29
30
30
31
FROM base As builder
31
32
COPY --from=pruner /app/out/pnpm-lock.yaml ./pnpm-lock.yaml
@@ -36,7 +37,7 @@ COPY --from=pruner /app/out/full/ ./
36
37
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile
37
38
38
39
RUN pnpm --filter @packages/database prisma:generate
39
- RUN pnpm --filter cron ssm pull -e ${DOCKER_ENV}
40
+ RUN pnpm --filter ${APP_NAME} ssm pull -e ${DOCKER_ENV}
40
41
RUN turbo build:prod
41
42
42
43
FROM base As runner
Original file line number Diff line number Diff line change @@ -19,13 +19,14 @@ ENV AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID}
19
19
ARG AWS_SECRET_ACCESS_KEY
20
20
ENV AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}
21
21
22
- ENV APP_DIR="apps/server"
22
+ ENV APP_NAME="server"
23
+ ENV APP_DIR="apps/${APP_NAME}"
23
24
24
25
WORKDIR /app
25
26
26
27
FROM base AS pruner
27
28
COPY . .
28
- RUN turbo prune server --docker
29
+ RUN turbo prune ${APP_NAME} --docker
29
30
30
31
FROM base As builder
31
32
COPY --from=pruner /app/out/pnpm-lock.yaml ./pnpm-lock.yaml
@@ -36,7 +37,7 @@ COPY --from=pruner /app/out/full/ ./
36
37
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile
37
38
38
39
RUN pnpm --filter @packages/database prisma:generate
39
- RUN pnpm --filter server ssm pull -e ${DOCKER_ENV}
40
+ RUN pnpm --filter ${APP_NAME} ssm pull -e ${DOCKER_ENV}
40
41
RUN turbo build:prod
41
42
42
43
FROM base As runner
Original file line number Diff line number Diff line change @@ -7,3 +7,4 @@ README.md
7
7
.out
8
8
.prettierrc
9
9
.env
10
+ .npmrc
Original file line number Diff line number Diff line change @@ -28,14 +28,13 @@ RUN turbo prune web --docker
28
28
FROM base As builder
29
29
COPY --from=pruner /app/out/pnpm-lock.yaml ./pnpm-lock.yaml
30
30
COPY --from=pruner /app/out/pnpm-workspace.yaml ./pnpm-workspace.yaml
31
- COPY --from=pruner /app/out/json/ ./
32
31
COPY --from=pruner /app/out/full/ ./
33
32
34
33
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile
35
34
36
35
RUN pnpm --filter web ssm pull -e ${DOCKER_ENV}
37
- RUN pnpm -r env:copy -e ${DOCKER_ENV}
38
- RUN turbo build:prod
36
+ RUN pnpm --filter web env:copy -e ${DOCKER_ENV}
37
+ RUN turbo build
39
38
40
39
FROM base AS runner
41
40
RUN addgroup --system --gid 1001 nodejs
Original file line number Diff line number Diff line change 23
23
"create-component" : " tsx ./scripts/createComponent.ts" ,
24
24
"create-svg-component" : " tsx ./scripts/createSvgComponent.ts" ,
25
25
"codegen" : " pnpm env:copy -e development && graphql-codegen --config codegen.ts -r dotenv/config" ,
26
- "ssm" : " tsx ./scripts/ssm/index.ts "
26
+ "ssm" : " tsx ./scripts/ssm.mts "
27
27
},
28
28
"dependencies" : {
29
- "@packages/common-scripts" : " workspace:*" ,
30
29
"@aws-sdk/client-ssm" : " ^3.431.0" ,
30
+ "@packages/common-scripts" : " workspace:*" ,
31
31
"@sentry/browser" : " ^7.75.0" ,
32
32
"@tanstack/react-query" : " ^5.18.0" ,
33
33
"axios" : " ^1.4.0" ,
Original file line number Diff line number Diff line change
1
+ import { SSMScript } from '@packages/common-scripts'
2
+
3
+ const script = new SSMScript ( { packageName : 'web' } )
4
+ script . excute ( )
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments