From fc7f6738dc9f14470ac315375d260bbb23317e15 Mon Sep 17 00:00:00 2001 From: Alan Malta Rodrigues Date: Wed, 10 Jan 2024 10:21:23 -0500 Subject: [PATCH] Replace svn by git in GitHub actions --- .github/workflows/docker_images_template.yaml | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/.github/workflows/docker_images_template.yaml b/.github/workflows/docker_images_template.yaml index e7850c06ad..42565ff3b9 100644 --- a/.github/workflows/docker_images_template.yaml +++ b/.github/workflows/docker_images_template.yaml @@ -38,15 +38,10 @@ jobs: CERN_REGISTRY: registry.cern.ch run: | echo "Building service: ${SERVICE_NAME}, with tag: ${PYPI_TAG}" - for i in 1 2 3 4 5; do - svn checkout https://github.com/dmwm/CMSKubernetes/trunk/docker/pypi/${SERVICE_NAME} - if [ $? -eq 0 ]; then - break - fi - echo "Retry $i: SVN failed to fetch files. Sleeping 60 seconds..." - sleep 60 - done - cd ${SERVICE_NAME} + git clone --filter=blob:none --no-checkout https://github.com/dmwm/CMSKubernetes.git \ + && cd CMSKubernetes && git sparse-checkout set --cone && git checkout master \ + && git sparse-checkout set docker/pypi/${SERVICE_NAME} + cd docker/pypi/${SERVICE_NAME} echo "Retrieved Dockerfile with content:" cat Dockerfile echo "Sleeping 5min to ensure that PyPi packages are available..."