From 690b8bef85883516c2dc4e29921afb2341cebe1a Mon Sep 17 00:00:00 2001 From: Andrew Harvey Date: Tue, 21 Dec 2021 18:25:06 +1100 Subject: use b2 to cache data --- .gitlab-ci.yml | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index dadb8e8..d3e105b 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -5,14 +5,6 @@ cache: &global_cache paths: - .yarn - node_modules - - data/vicmap.geojson - - dist/vicmap-complex.geojson - - dist/vicmap-building.geojson - - dist/vicmap-osm-uniq-flats.geojson - - data/victoria-addr.osm.geojson - - data/victoria-named-features.osm.geojson - - dist/blocksByOSMAddr.geojson - - data/victoria-admin-level10.osm.geojson stages: - docker @@ -100,6 +92,9 @@ docker candidate: prepare: stage: prepare image: "registry.gitlab.com/alantgeo/vicmap2osm:prepare" + before_script: + - b2 authorize-account $B2_KEYID $B2_APPKEY + - b2 sync --noProgress vicmap2osm . cache: <<: *global_cache policy: push @@ -109,6 +104,8 @@ prepare: - mkdir -p dist - make data/vicmap/ll_gda94/sde_shape/whole/VIC/VMADD/layer/address.shp - make data/vicmap.geojson + after_script: + - b2 sync --noProgress data/vicmap.geojson vicmap2osm/data/vicmap.geojson when: manual build vicmap: -- cgit v1.2.3