diff --git a/python/add_data.sh b/python/add_data.sh index c42f8aa..9616d23 100755 --- a/python/add_data.sh +++ b/python/add_data.sh @@ -527,27 +527,6 @@ import_census_boundaries() { cat opendrr-boundaries.sql.[0-9][0-9] > opendrr-boundaries.sql fi - elif [[ "${ADD_DATA_B2_OVER_ARTIFACT,,}" =~ ^(true|1|y|yes|on)$ ]]; then - INFO "... from B2, branch ${boundaries_branch}..." - - # TODO: Simplify the code below - RUN curl -O --retry 999 --retry-max-time 0 \ - "https://opendrr.eccp.ca/file/OpenDRR/opendrr-boundaries-${boundaries_branch}.sql" || \ - RUN curl -O --retry 999 --retry-max-time 0 \ - "https://opendrr.eccp.ca/file/OpenDRR/opendrr-boundaries-${boundaries_branch}.sql" || \ - RUN curl -O --retry 999 --retry-max-time 0 \ - "https://f000.backblazeb2.com/file/OpenDRR/opendrr-boundaries-${boundaries_branch}.sql" - - RUN curl -O --retry 999 --retry-max-time 0 \ - "https://opendrr.eccp.ca/file/OpenDRR/opendrr-boundaries-${boundaries_branch}.sql.sha256sum" || \ - RUN curl -O --retry 999 --retry-max-time 0 \ - "https://opendrr.eccp.ca/file/OpenDRR/opendrr-boundaries-${boundaries_branch}.sql.sha256sum" || \ - RUN curl -O --retry 999 --retry-max-time 0 \ - "https://f000.backblazeb2.com/file/OpenDRR/opendrr-boundaries-${boundaries_branch}.sql.sha256sum" - - RUN mv -fv "opendrr-boundaries-${boundaries_branch}.sql" opendrr-boundaries.sql - RUN mv -fv "opendrr-boundaries-${boundaries_branch}.sql.sha256sum" opendrr-boundaries.sql.sha256sum - else # For a feature/topic branch, we download the artifact from the latest # action run that matches our criteria