From 1dfb9cbc5c064e3a4d728d393884f633de879c29 Mon Sep 17 00:00:00 2001 From: Roberto Giovanardi Date: Mon, 14 Oct 2024 10:41:01 +0200 Subject: [PATCH] ci: workaround upstream build issue Currently the master branch of Copybara is broken, and to prevent failure we just revert to the previous commit. Here's the issue opened: https://github.com/google/copybara/issues/299 Ticket: QA-678 Signed-off-by: Roberto Giovanardi --- .gitlab-ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 030f4335..2e6c251d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -375,8 +375,9 @@ build:copybara: script: - echo "INFO - Building and Pushing ${CONTAINER_TAG}-${CI_PIPELINE_ID} to the registry ${CI_REGISTRY_IMAGE}" - apk add --no-cache git - - git clone --depth 1 https://github.com/google/copybara.git + - git clone https://github.com/google/copybara.git - cd copybara + - git reset --head d691934fcae4557ece1218eb7f8b1e51ab0a7055 # preventing build failure: https://github.com/google/copybara/issues/299 - docker buildx build --cache-to type=registry,ref=${CI_REGISTRY_IMAGE}:${CONTAINER_TAG}_ci_cache,mode=max --cache-from type=registry,ref=${CI_REGISTRY_IMAGE}:${CONTAINER_TAG}_ci_cache