Skip to content

Commit a348b8c

Browse files
committed
fix(publish-runtime): materialize submodules
1 parent 0a91505 commit a348b8c

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

.github/workflows/publish-runtime.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,18 @@ jobs:
3939
username: ${{ github.actor }}
4040
password: ${{ secrets.GITHUB_TOKEN }}
4141

42+
- name: Materialize submodule git dirs for Docker
43+
run: |
44+
git submodule foreach --recursive '
45+
if [ -f .git ]; then
46+
gitdir=$(git rev-parse --git-dir)
47+
rm .git
48+
mkdir .git
49+
cp -a "$gitdir"/. .git/
50+
git --git-dir=.git config --unset core.worktree || true
51+
fi
52+
'
53+
4254
- name: Build and push runtime image
4355
uses: docker/build-push-action@v6
4456
with:

0 commit comments

Comments
 (0)