mirror of
https://github.com/twentyhq/twenty.git
synced 2024-08-17 01:40:44 +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
|
||||
working-directory: packages
|
||||
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
|
||||
cd $dir
|
||||
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",
|
||||
"path": "../packages/twenty-docker"
|
||||
},
|
||||
{
|
||||
"name": "packages/twenty-docs",
|
||||
"path": "../packages/twenty-docs"
|
||||
},
|
||||
{
|
||||
"name": "packages/twenty-front",
|
||||
"path": "../packages/twenty-front"
|
||||
@ -99,7 +95,6 @@
|
||||
"ROOT",
|
||||
"packages/twenty-zapier",
|
||||
"packages/twenty-docker",
|
||||
"packages/twenty-docs",
|
||||
"packages/twenty-utils",
|
||||
"packages/twenty-postgres"
|
||||
]
|
||||
|
@ -351,7 +351,6 @@
|
||||
"packages": [
|
||||
"packages/twenty-chrome-extension",
|
||||
"packages/twenty-front",
|
||||
"packages/twenty-docs",
|
||||
"packages/twenty-server",
|
||||
"packages/twenty-emails",
|
||||
"packages/twenty-ui",
|
||||
|
@ -23,12 +23,6 @@ dev-postgres-build:
|
||||
@docker volume rm twenty_db_data || true
|
||||
@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:
|
||||
@cd ../.. && docker build -f ./packages/twenty-docker/twenty/Dockerfile --tag twenty . && cd -
|
||||
|
||||
@ -47,14 +41,6 @@ prod-website-build:
|
||||
prod-website-run:
|
||||
@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:
|
||||
@cd ../.. && docker buildx build \
|
||||
--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 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');
|
||||
|
||||
// Update package.json
|
||||
|
@ -46702,12 +46702,6 @@ __metadata:
|
||||
languageName: unknown
|
||||
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":
|
||||
version: 0.0.0-use.local
|
||||
resolution: "twenty-emails@workspace:packages/twenty-emails"
|
||||
|
Loading…
Reference in New Issue
Block a user