Fixes OSS including EE by providing empty ext dir

pull/1096/head
Spoffy 2 months ago committed by jordigh
parent 90a9291e0d
commit a999b4250e

@ -87,7 +87,7 @@ jobs:
load: true
tags: ${{ env.DOCKER_HUB_OWNER }}/${{ matrix.image.name }}:${{ env.TAG }}
cache-from: type=gha
build-contexts: ${{ matrix.image.name != 'grist-oss' && 'ext=ext' || '' }}
build-contexts: ext=ext
- name: Use Node.js ${{ matrix.node-version }} for testing
if: ${{ !inputs.disable_tests }}
@ -140,7 +140,7 @@ jobs:
tags: ${{ env.DOCKER_HUB_OWNER }}/${{ matrix.image.name }}:${{ env.TAG }}
cache-from: type=gha
cache-to: type=gha,mode=max
build-contexts: ${{ matrix.image.name != 'grist-oss' && 'ext=ext' || '' }}
build-contexts: ext=ext
- name: Push Enterprise to Docker Hub
if: ${{ matrix.image.name == 'grist' }}

3
.gitignore vendored

@ -80,3 +80,6 @@ xunit.xml
.clipboard.lock
**/_build
# ext directory can be overwritten
ext/**

@ -14,5 +14,6 @@ pushd $repo
git sparse-checkout set ext
git checkout
popd
rm -rf ./ext
mv $repo/ext .
rm -rf $repo

@ -0,0 +1,5 @@
`ext` is a directory that allows derivatives of Grist core to be created, without modifying any of the base files.
Files placed in here should be new files, or replacing files in the `stubs` directory.
When compiling, Typescript resolves files in `ext` before files in `stubs`, using the `ext` file instead (if it exists).
Loading…
Cancel
Save