Skip to content

Commit

Permalink
Retry docker build
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
findepi committed May 12, 2023
1 parent 8faef44 commit c68b030
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ jobs:
- uses: docker/setup-qemu-action@v2
with:
platforms: arm64,ppc64le
- name: Test Docker Image
- name: Build and Test Docker Image
run: core/docker/build.sh
- name: Remove Trino from local Maven repo to avoid caching it
# Avoid caching artifacts built in this job, cache should only include dependencies
Expand Down
2 changes: 1 addition & 1 deletion core/docker/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ TAG_PREFIX="trino:${TRINO_VERSION}"

for arch in "${ARCHITECTURES[@]}"; do
echo "🫙 Building the image for $arch"
docker build \
"${SOURCE_DIR}/.github/bin/retry" docker build \
"${WORK_DIR}" \
--pull \
--platform "linux/$arch" \
Expand Down

0 comments on commit c68b030

Please sign in to comment.