-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: add uptime robot link * feat: add queue and clean up (#286) * feat: add queue and clean up * feat: add chapters generation and merge backend app with frontend * chore: add chapter generation * chore: merge admin with frontend server (#287) * feat: add edit chapters * chore: add ffmpeg to runner container * chore: add health check * chore: update playwright * feat: migration to pnpm * fix: playwright e2e * fix: add pnpm action * fix: add pnpm action * fix: upgrade playwright * feat: add chapter form * fix: add migration * chore: update theme * feat: add conception migration * feat: better-auth migration (#291) * feat: better-auth migration * feat: fix better auth migration * feat: update authentification and fix chapters generation * chore: update docker config * chore(ci): update .env * chore(ci): update github workflow * fix: re-create db migration * fix: update migration * fix: smtp config * chore(ci): clean up * chore(ci): update static files * chore: fix translations * chore: update github workflow * chore: enable manual * chore: update github workflow * chore: update github workflow * chore: fix better auth migration * chore: update github actions * fix: add emotion auto detection * feat: add project stats * chore: add es translation * chore: add es translation
- Loading branch information
Showing
199 changed files
with
31,652 additions
and
29,300 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Binary file removed
BIN
-469 Bytes
.git-crypt/keys/default/0/9707AE82EE133B6D6DF6BBBCFEC4826185A73A63.gpg
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -49,3 +49,7 @@ node_modules/ | |
/playwright/.cache/ | ||
|
||
|
||
.cache | ||
sandbox | ||
.adminjs | ||
.eslintcache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/usr/bin/env sh | ||
. "$(dirname -- "$0")/_/husky.sh" | ||
|
||
yarn commitlint ${1} | ||
pnpm commitlint --edit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
npx lint-staged | ||
# npx lint-staged |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
node-linker=hoisted | ||
enable-pre-post-scripts=true | ||
package-manager-strict=false |
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,60 +1,45 @@ | ||
FROM node:20-alpine AS custom-node | ||
FROM node:20-alpine AS base | ||
RUN apk add --no-cache libc6-compat ffmpeg bash openssl openssl-dev | ||
RUN npm install -g turbo pnpm | ||
|
||
RUN apk add -f --update --no-cache --virtual .gyp nano bash libc6-compat python3 make g++ caddy \ | ||
&& yarn global add turbo pm2 \ | ||
&& apk del .gyp | ||
|
||
|
||
FROM custom-node AS pruned | ||
FROM base AS pruned | ||
WORKDIR /app | ||
ARG APP | ||
|
||
COPY . . | ||
RUN turbo prune --scope=frontend --docker | ||
|
||
RUN turbo prune --scope=$APP --docker | ||
|
||
FROM custom-node AS installer | ||
FROM base AS installer | ||
WORKDIR /app | ||
ARG APP | ||
|
||
COPY --from=pruned /app/out/json/ . | ||
COPY --from=pruned /app/out/yarn.lock /app/yarn.lock | ||
COPY --from=pruned /app/out/pnpm-lock.yaml /app/pnpm-lock.yaml | ||
|
||
RUN \ | ||
--mount=type=cache,target=/usr/local/share/.cache/yarn/v6,sharing=private \ | ||
yarn | ||
--mount=type=cache,target=/root/.local/share/pnpm/store,sharing=private \ | ||
pnpm install --frozen-lockfile | ||
|
||
FROM custom-node as builder | ||
FROM base as builder | ||
WORKDIR /app | ||
ARG APP | ||
ARG API_URL | ||
ARG COMMIT | ||
|
||
ENV COMMIT=${COMMIT} | ||
ENV API_URL=${API_URL} | ||
|
||
COPY --from=installer --link /app . | ||
|
||
COPY --from=pruned /app/out/full/ . | ||
COPY turbo.json turbo.json | ||
COPY tsconfig.json tsconfig.json | ||
|
||
RUN turbo run build --no-cache --filter=${APP} | ||
RUN turbo run build --no-cache | ||
|
||
RUN \ | ||
--mount=type=cache,target=/usr/local/share/.cache/yarn/v6,sharing=private \ | ||
yarn --frozen-lockfile | ||
--mount=type=cache,target=/root/.local/share/pnpm/store,sharing=private \ | ||
pnpm install --frozen-lockfile | ||
|
||
############################################# | ||
FROM node:20-alpine AS runner | ||
FROM base AS runner | ||
WORKDIR /app | ||
ARG APP=admin | ||
ARG START_COMMAND=dev | ||
|
||
ENV APP=${APP} | ||
ENV START_COMMAND=${START_COMMAND} | ||
ENV PORT=3000 | ||
RUN apk add --no-cache ffmpeg curl bash openssl openssl-dev | ||
|
||
COPY --from=builder /app . | ||
|
||
CMD yarn workspace ${APP} ${START_COMMAND} | ||
HEALTHCHECK --interval=30s --timeout=3s --start-period=30s --retries=3 \ | ||
CMD curl -f http://localhost:3000/ || exit 1 | ||
|
||
CMD ["sh", "-c", "pnpm prisma migrate:deploy & pnpm frontend start"] |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.