-
Notifications
You must be signed in to change notification settings - Fork 857
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: 使用monorepo组织代码
- Loading branch information
Showing
123 changed files
with
8,747 additions
and
6,617 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 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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: Build and Publish Docker Image | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build-and-push: | ||
permissions: | ||
packages: write | ||
contents: read | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Build and push Docker image | ||
uses: TBXark/docker-action@master | ||
with: | ||
docker_registry: ghcr.io | ||
docker_username: ${{ github.actor }} | ||
docker_password: ${{ secrets.GITHUB_TOKEN }} | ||
backup_registry: ${{ secrets.BACKUP_REGISTRY }} | ||
backup_username: ${{ secrets.BACKUP_USERNAME }} | ||
backup_password: ${{ secrets.BACKUP_PASSWORD }} |
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,15 +1,16 @@ | ||
FROM node:alpine AS build | ||
WORKDIR /app | ||
COPY package.json tsconfig.json vite.config.ts ./ | ||
RUN npm install | ||
COPY src src | ||
RUN npm run build:local | ||
COPY package.json pnpm-lock.yaml pnpm-workspace.yaml ./ | ||
RUN npm install -g pnpm | ||
COPY . . | ||
RUN pnpm install | ||
RUN pnpm -r run build | ||
|
||
|
||
FROM node:alpine AS production | ||
WORKDIR /app | ||
COPY package.json ./ | ||
RUN npm install --omit=dev | ||
COPY --from=build /app/dist ./dist | ||
COPY packages/apps/local/package.docker.json package.json | ||
RUN npm install | ||
COPY --from=build /app/packages/apps/local/dist/index.js index.js | ||
EXPOSE 8787 | ||
CMD ["npm", "run", "start:dist"] | ||
CMD ["npm", "run", "start"] |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.