1
0
Fork 0
mirror of synced 2024-09-28 07:11:40 +12:00

Cache output files

This commit is contained in:
Adria Navarro 2023-10-06 14:32:17 +02:00
parent ca289dbb3a
commit da53f0a366
4 changed files with 9 additions and 11 deletions

View file

@ -50,7 +50,7 @@ jobs:
- name: Run Yarn
run: yarn
- name: Run Yarn Build
run: yarn build --scope @budibase/builder --scope @budibase/server --scope @budibase/worker
run: yarn build --scope @budibase/server --scope @budibase/worker
- name: Login to Docker Hub
uses: docker/login-action@v2
with:

View file

@ -1,8 +0,0 @@
const ncp = require("ncp").ncp
ncp("./dist", "../server/builder", function (err) {
if (err) {
return console.error(err)
}
console.log("Copied dist folder to ../server/builder")
})

View file

@ -170,10 +170,16 @@
]
},
"build": {
"outputs": [
"{projectRoot}/builder",
"{projectRoot}/client",
"{projectRoot}/dist"
],
"dependsOn": [
{
"projects": [
"@budibase/client"
"@budibase/client",
"@budibase/builder"
],
"target": "build"
}

View file

@ -1,4 +1,4 @@
#!/bin/bash
yarn build --scope @budibase/builder --scope @budibase/server --scope @budibase/worker
yarn build --scope @budibase/server --scope @budibase/worker
./scripts/generatePackageNamesFile.sh
docker build -f hosting/single/Dockerfile -t budibase:latest .