diff options
author | Andrew Harvey <andrew@alantgeo.com.au> | 2021-05-16 07:32:09 +1000 |
---|---|---|
committer | Andrew Harvey <andrew@alantgeo.com.au> | 2021-05-16 07:32:09 +1000 |
commit | ffd83dfd271a636ea85a1c8328c6eb967f76ff81 (patch) | |
tree | 97c5ca07de433e671698a8138aa44bc0e5c44d4e /.gitlab-ci.yml | |
parent | 98a5908c625ba2b32fcefa0113ac3e02c3f63a97 (diff) |
docker images for ci
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e564ee7..0c491aa 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -8,9 +8,52 @@ cache: &global_cache - data/vicmap.geojson stages: + - docker - prepare - build +docker prepare: + 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":prepare -f "docker/prepare.Dockerfile" . + - docker push "$CI_REGISTRY_IMAGE":prepare + after_script: + - docker logout $CI_REGISTRY + when: manual + +docker build: + 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":build -f "docker/build.Dockerfile" . + - docker push "$CI_REGISTRY_IMAGE":build + after_script: + - docker logout $CI_REGISTRY + when: manual + +docker conflate: + 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":conflate -f "docker/conflate.Dockerfile" . + - docker push "$CI_REGISTRY_IMAGE":conflate + after_script: + - docker logout $CI_REGISTRY + when: manual + prepare: stage: prepare cache: |