Skip to content

Commit

Permalink
Allow the docker build CI jobs to be retried (#10774)
Browse files Browse the repository at this point in the history
to workaround temporary network failures.
  • Loading branch information
L3n41c authored Feb 4, 2022
1 parent 76b62f4 commit 666d557
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitlab/image_build/docker_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
- docker build --build-arg CIBUILD=true $BUILD_ARG --file $BUILD_CONTEXT/$ARCH/Dockerfile --pull --tag ${TARGET_TAG}-unsquashed $BUILD_CONTEXT
- docker-squash ${TARGET_TAG}-unsquashed -t ${TARGET_TAG}
- docker push $TARGET_TAG
# Workaround for temporary network failures
retry: 2

.docker_build_job_definition_amd64:
extends: .docker_build_job_definition
Expand Down
2 changes: 2 additions & 0 deletions .gitlab/image_build/docker_windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
docker login --username "`${DOCKER_REGISTRY_LOGIN}" --password "`${DOCKER_REGISTRY_PWD}" "${DOCKER_REGISTRY_URL}"
If (`$lastExitCode -ne "0") { throw "Previous command returned `$lastExitCode" }
"@ | out-file ci-scripts/docker-login.ps1
# Workaround for temporary network failures
retry: 2

.docker_build_agent_windows_common:
extends:
Expand Down

0 comments on commit 666d557

Please sign in to comment.