Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow the docker build CI jobs to be retried #10774

Merged
merged 1 commit into from
Feb 4, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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