Skip to content

Commit 86e2bff

Browse files
ci: ensure that the builder container is healthy
GitHub Actions sometimes fails due to unclear reasons with the following error: ``` $ ./build-exec bundle config set --local without check There was an error while trying to write to `/home/me/build/.bundle/config`. It is likely that you need to grant write permissions for that path. ``` This commit tries to fix this by waiting for the builder container
1 parent c3d678b commit 86e2bff

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,8 @@ jobs:
126126
${{ steps.builder-image.outputs.imageid }} /bin/sh
127127
echo 'docker exec -u me builder "$@"' > ./build-exec
128128
chmod +x ./build-exec
129-
- run: ./build-exec bundle config set --local without check
129+
# wait for docker exec to be ready
130+
timeout 10 bash -c 'until ./build-exec bundle config set --local without check; do sleep 1; done'
130131
- run: ./build-exec ./bin/setup
131132
- run: ./build-exec bundle exec rake compile
132133
- name: Pre-release configuration

0 commit comments

Comments
 (0)