Skip to content

Commit c68b030

Browse files
committed
Retry docker build
Docker build involves network operations and some of them do not have implicit retries. For example, the command git clone https://github.com/airlift/jvmkill /tmp/jvmkill currently does not retry.
1 parent 8faef44 commit c68b030

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ jobs:
114114
- uses: docker/setup-qemu-action@v2
115115
with:
116116
platforms: arm64,ppc64le
117-
- name: Test Docker Image
117+
- name: Build and Test Docker Image
118118
run: core/docker/build.sh
119119
- name: Remove Trino from local Maven repo to avoid caching it
120120
# Avoid caching artifacts built in this job, cache should only include dependencies

core/docker/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ TAG_PREFIX="trino:${TRINO_VERSION}"
7171

7272
for arch in "${ARCHITECTURES[@]}"; do
7373
echo "🫙 Building the image for $arch"
74-
docker build \
74+
"${SOURCE_DIR}/.github/bin/retry" docker build \
7575
"${WORK_DIR}" \
7676
--pull \
7777
--platform "linux/$arch" \

0 commit comments

Comments
 (0)