Add builder and pm2 config
This commit is contained in:
parent
7460467786
commit
42b6489905
|
@ -49,7 +49,7 @@ jobs:
|
||||||
- name: Run Yarn
|
- name: Run Yarn
|
||||||
run: yarn
|
run: yarn
|
||||||
- name: Run Yarn Build
|
- name: Run Yarn Build
|
||||||
run: yarn build --scope @budibase/server --scope @budibase/worker
|
run: yarn build --scope @budibase/builder --scope @budibase/server --scope @budibase/worker
|
||||||
- name: Login to Docker Hub
|
- name: Login to Docker Hub
|
||||||
uses: docker/login-action@v2
|
uses: docker/login-action@v2
|
||||||
with:
|
with:
|
||||||
|
|
|
@ -30,8 +30,11 @@ RUN --mount=type=cache,target=/root/.yarn YARN_CACHE_FOLDER=/root/.yarn yarn in
|
||||||
|
|
||||||
# copy the actual code
|
# copy the actual code
|
||||||
COPY packages/server/dist packages/server/dist
|
COPY packages/server/dist packages/server/dist
|
||||||
|
COPY packages/server/pm2.config.js packages/server/pm2.config.js
|
||||||
COPY packages/server/client packages/server/client
|
COPY packages/server/client packages/server/client
|
||||||
|
COPY packages/server/builder packages/server/builder
|
||||||
COPY packages/worker/dist packages/worker/dist
|
COPY packages/worker/dist packages/worker/dist
|
||||||
|
COPY packages/worker/pm2.config.js packages/worker/pm2.config.js
|
||||||
COPY packages/string-templates packages/string-templates
|
COPY packages/string-templates packages/string-templates
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
yarn build --scope @budibase/server --scope @budibase/worker
|
yarn build --scope @budibase/builder --scope @budibase/server --scope @budibase/worker
|
||||||
./scripts/generatePackageNamesFile.sh
|
./scripts/generatePackageNamesFile.sh
|
||||||
docker build -f hosting/single/Dockerfile -t budibase:latest .
|
docker build -f hosting/single/Dockerfile -t budibase:latest .
|
||||||
|
|
Loading…
Reference in New Issue