Fixes OSS including EE by providing empty ext dir

This commit is contained in:
Spoffy 2024-07-08 14:03:18 -04:00 committed by jordigh
parent 90a9291e0d
commit a999b4250e
4 changed files with 11 additions and 2 deletions

View File

@ -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
View File

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

View File

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

5
ext/README.md Normal file
View File

@ -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).