mirror of
https://github.com/twentyhq/twenty.git
synced 2024-08-16 17:30:24 +03:00
Fix docs build in CI (#5826)
This commit is contained in:
parent
be96c68416
commit
a57e251208
2
.github/workflows/ci-release.yaml
vendored
2
.github/workflows/ci-release.yaml
vendored
@ -26,7 +26,7 @@ jobs:
|
|||||||
- name: Update versions
|
- name: Update versions
|
||||||
working-directory: packages
|
working-directory: packages
|
||||||
run: |
|
run: |
|
||||||
for dir in twenty-docs twenty-emails twenty-front twenty-server twenty-ui twenty-website
|
for dir in twenty-emails twenty-front twenty-server twenty-ui twenty-website
|
||||||
do
|
do
|
||||||
cd $dir
|
cd $dir
|
||||||
yarn version ${{ steps.sanitize.outputs.version }}
|
yarn version ${{ steps.sanitize.outputs.version }}
|
||||||
|
5
.vscode/twenty.code-workspace
vendored
5
.vscode/twenty.code-workspace
vendored
@ -12,10 +12,6 @@
|
|||||||
"name": "packages/twenty-docker",
|
"name": "packages/twenty-docker",
|
||||||
"path": "../packages/twenty-docker"
|
"path": "../packages/twenty-docker"
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"name": "packages/twenty-docs",
|
|
||||||
"path": "../packages/twenty-docs"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"name": "packages/twenty-front",
|
"name": "packages/twenty-front",
|
||||||
"path": "../packages/twenty-front"
|
"path": "../packages/twenty-front"
|
||||||
@ -99,7 +95,6 @@
|
|||||||
"ROOT",
|
"ROOT",
|
||||||
"packages/twenty-zapier",
|
"packages/twenty-zapier",
|
||||||
"packages/twenty-docker",
|
"packages/twenty-docker",
|
||||||
"packages/twenty-docs",
|
|
||||||
"packages/twenty-utils",
|
"packages/twenty-utils",
|
||||||
"packages/twenty-postgres"
|
"packages/twenty-postgres"
|
||||||
]
|
]
|
||||||
|
@ -351,7 +351,6 @@
|
|||||||
"packages": [
|
"packages": [
|
||||||
"packages/twenty-chrome-extension",
|
"packages/twenty-chrome-extension",
|
||||||
"packages/twenty-front",
|
"packages/twenty-front",
|
||||||
"packages/twenty-docs",
|
|
||||||
"packages/twenty-server",
|
"packages/twenty-server",
|
||||||
"packages/twenty-emails",
|
"packages/twenty-emails",
|
||||||
"packages/twenty-ui",
|
"packages/twenty-ui",
|
||||||
|
@ -23,12 +23,6 @@ dev-postgres-build:
|
|||||||
@docker volume rm twenty_db_data || true
|
@docker volume rm twenty_db_data || true
|
||||||
@docker compose -f dev/docker-compose.yml up --build postgres -d
|
@docker compose -f dev/docker-compose.yml up --build postgres -d
|
||||||
|
|
||||||
prod-docs-build:
|
|
||||||
@cd ../.. && docker build -f ./packages/twenty-docker/twenty-docs/Dockerfile --tag twenty-docs . && cd -
|
|
||||||
|
|
||||||
prod-docs-run:
|
|
||||||
@docker run -d -p 3000:3000 --name twenty-docs twenty-docs
|
|
||||||
|
|
||||||
prod-build:
|
prod-build:
|
||||||
@cd ../.. && docker build -f ./packages/twenty-docker/twenty/Dockerfile --tag twenty . && cd -
|
@cd ../.. && docker build -f ./packages/twenty-docker/twenty/Dockerfile --tag twenty . && cd -
|
||||||
|
|
||||||
@ -47,14 +41,6 @@ prod-website-build:
|
|||||||
prod-website-run:
|
prod-website-run:
|
||||||
@docker run -d -p 3000:3000 --name twenty-website twenty-website
|
@docker run -d -p 3000:3000 --name twenty-website twenty-website
|
||||||
|
|
||||||
release-docs:
|
|
||||||
@cd ../.. && docker buildx build \
|
|
||||||
--push \
|
|
||||||
--no-cache \
|
|
||||||
--platform linux/amd64,linux/arm64 \
|
|
||||||
-f ./packages/twenty-docker/twenty-docs/Dockerfile -t twentycrm/twenty-docs:$(version) -t twentycrm/twenty-docs:latest . \
|
|
||||||
&& cd -
|
|
||||||
|
|
||||||
release-postgres:
|
release-postgres:
|
||||||
@cd ../.. && docker buildx build \
|
@cd ../.. && docker buildx build \
|
||||||
--push \
|
--push \
|
||||||
|
@ -1,32 +0,0 @@
|
|||||||
FROM node:18.17.1-alpine as twenty-docs-build
|
|
||||||
|
|
||||||
WORKDIR /app
|
|
||||||
|
|
||||||
ARG SHOULD_INDEX_DOC
|
|
||||||
|
|
||||||
COPY ./package.json .
|
|
||||||
COPY ./yarn.lock .
|
|
||||||
COPY ./.yarnrc.yml .
|
|
||||||
COPY ./.yarn/releases /app/.yarn/releases
|
|
||||||
COPY ./packages/twenty-docs/package.json /app/packages/twenty-docs/package.json
|
|
||||||
COPY ./packages/twenty-emails /app/packages/twenty-emails
|
|
||||||
COPY ./packages/twenty-ui /app/packages/twenty-ui
|
|
||||||
RUN yarn
|
|
||||||
|
|
||||||
COPY ./packages/twenty-docs /app/packages/twenty-docs
|
|
||||||
RUN npx nx build twenty-docs
|
|
||||||
|
|
||||||
CMD ["tail", "-f", "/dev/null"]
|
|
||||||
|
|
||||||
FROM node:18.17.1-alpine as twenty-docs
|
|
||||||
|
|
||||||
WORKDIR /app/packages/twenty-docs
|
|
||||||
|
|
||||||
COPY --from=twenty-docs-build /app/packages/twenty-docs/build ./build
|
|
||||||
|
|
||||||
RUN yarn global add serve
|
|
||||||
|
|
||||||
LABEL org.opencontainers.image.source=https://github.com/twentyhq/twenty
|
|
||||||
LABEL org.opencontainers.image.description="This image provides a consistent and reproducible environment for the documentation."
|
|
||||||
|
|
||||||
CMD ["serve", "-s", "./build"]
|
|
@ -14,7 +14,6 @@ if (!semver.valid(version)) {
|
|||||||
|
|
||||||
const frontPackageJson = path.join(__dirname, '../twenty-front/package.json');
|
const frontPackageJson = path.join(__dirname, '../twenty-front/package.json');
|
||||||
const serverPackageJson = path.join(__dirname, '../twenty-server/package.json');
|
const serverPackageJson = path.join(__dirname, '../twenty-server/package.json');
|
||||||
const docsPackageJson = path.join(__dirname, '../twenty-docs/package.json');
|
|
||||||
const emailPackageJson = path.join(__dirname, '../twenty-emails/package.json');
|
const emailPackageJson = path.join(__dirname, '../twenty-emails/package.json');
|
||||||
|
|
||||||
// Update package.json
|
// Update package.json
|
||||||
|
@ -46702,12 +46702,6 @@ __metadata:
|
|||||||
languageName: unknown
|
languageName: unknown
|
||||||
linkType: soft
|
linkType: soft
|
||||||
|
|
||||||
"twenty-docs@workspace:packages/twenty-docs":
|
|
||||||
version: 0.0.0-use.local
|
|
||||||
resolution: "twenty-docs@workspace:packages/twenty-docs"
|
|
||||||
languageName: unknown
|
|
||||||
linkType: soft
|
|
||||||
|
|
||||||
"twenty-emails@workspace:packages/twenty-emails":
|
"twenty-emails@workspace:packages/twenty-emails":
|
||||||
version: 0.0.0-use.local
|
version: 0.0.0-use.local
|
||||||
resolution: "twenty-emails@workspace:packages/twenty-emails"
|
resolution: "twenty-emails@workspace:packages/twenty-emails"
|
||||||
|
Loading…
Reference in New Issue
Block a user