aboutsummaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorAndrew Harvey <andrew@alantgeo.com.au>2021-05-27 14:41:06 +1000
committerAndrew Harvey <andrew@alantgeo.com.au>2021-05-27 14:41:06 +1000
commit6fc8dc4617916d57427a85478b4448e0684e3798 (patch)
treee922d537d7f4c436e34998024c1966ac81f9c04f /.gitlab-ci.yml
parentb4a605492dbad1eb95db93221deefbf02e3069de (diff)
starting to sketch out candidates stage
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml34
1 files changed, 34 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 196c4e1..b528229 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -77,6 +77,21 @@ docker conflate:
when: manual
cache: {}
+docker candidate:
+ image: docker:latest
+ services:
+ - docker:dind
+ stage: docker
+ before_script:
+ - echo "$CI_JOB_TOKEN" | docker login -u "$CI_REGISTRY_USER" --password-stdin $CI_REGISTRY
+ script:
+ - docker build --pull -t "$CI_REGISTRY_IMAGE":candidate -f "docker/candidate.Dockerfile" .
+ - docker push "$CI_REGISTRY_IMAGE":candidate
+ after_script:
+ - docker logout $CI_REGISTRY
+ when: manual
+ cache: {}
+
prepare:
stage: prepare
image: "registry.gitlab.com/alantgeo/vicmap2osm:prepare"
@@ -161,6 +176,25 @@ conflate:
paths:
- dist
+candidate:
+ stage: candidate
+ image: "registry.gitlab.com/alantgeo/vicmap2osm:candidate"
+ before_script:
+ - ls data dist
+ cache:
+ <<: *global_cache
+ policy: pull
+ script:
+ - yarn install
+ - cp src/polygon-lookup-patch.js node_modules/polygon-lookup/index.js
+ - make dist/candidate
+ - make testUploadCandidates
+ when: manual
+ artifacts:
+ name: "candidate"
+ paths:
+ - dist
+
build compareSuburb:
stage: build
image: "registry.gitlab.com/alantgeo/vicmap2osm:build-osm"