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 - name: Run Yarn
run: yarn run: yarn
- name: Run Yarn Build - 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 - name: Login to Docker Hub
uses: docker/login-action@v2 uses: docker/login-action@v2
with: 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": { "build": {
"outputs": [
"{projectRoot}/builder",
"{projectRoot}/client",
"{projectRoot}/dist"
],
"dependsOn": [ "dependsOn": [
{ {
"projects": [ "projects": [
"@budibase/client" "@budibase/client",
"@budibase/builder"
], ],
"target": "build" "target": "build"
} }

View File

@ -1,4 +1,4 @@
#!/bin/bash #!/bin/bash
yarn build --scope @budibase/builder --scope @budibase/server --scope @budibase/worker yarn build --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 .