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