Cache output files
This commit is contained in:
parent
ca289dbb3a
commit
da53f0a366
|
@ -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:
|
||||
|
|
|
@ -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")
|
||||
})
|
|
@ -170,10 +170,16 @@
|
|||
]
|
||||
},
|
||||
"build": {
|
||||
"outputs": [
|
||||
"{projectRoot}/builder",
|
||||
"{projectRoot}/client",
|
||||
"{projectRoot}/dist"
|
||||
],
|
||||
"dependsOn": [
|
||||
{
|
||||
"projects": [
|
||||
"@budibase/client"
|
||||
"@budibase/client",
|
||||
"@budibase/builder"
|
||||
],
|
||||
"target": "build"
|
||||
}
|
||||
|
|
|
@ -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 .
|
||||
|
|
Loading…
Reference in New Issue