Something went wrong on our end
-
David Hoese authoredDavid Hoese authored
.gitlab-ci.yml 3.99 KiB
stages:
- get chart
- build prereqs
- deploy rabbit
- deploy storage
- deploy GRB
- deploy G2G
- deploy WMS
- deploy WMTS
variables:
DOCKER_TLS_CERTDIR: ""
DOCKER_HOST: "tcp://localhost:2375"
DOCKER_DRIVER: overlay2
HELM_EXPERIMENTAL_OCI: "1"
CICHART_IMAGE: "$CI_REGISTRY_IMAGE/cichart:latest"
include:
- local: "/helpers/build_image.yaml"
- local: "/helpers/docker_base.yaml"
- local: "/helpers/helm_base.yaml"
build ci:
stage: .pre
extends: .docker_based_job
script:
- cd cichart
- docker build --tag $CICHART_IMAGE .
- docker push $CICHART_IMAGE
rules:
- changes:
- cichart/Dockerfile
when: always
- if: $BUILD_CI_IMAGE
when: always
build sidecar rabbit init:
stage: build prereqs
extends: .build_image
variables:
IMAGE_NAME: cspp-geo-rabbit-init
IMAGE_DIR: sidecars/cspp-geo-rabbit-init
rules:
- changes:
- sidecars/cspp-geo-rabbit-init/Dockerfile
- sidecars/cspp-geo-rabbit-init/declare_exchange.py
when: always
- if: $BUILD_PREREQS
when: always
.get_chart_tmpl:
extends: .helm_based_job
stage: get chart
variables:
SUBCOMP_REPOS_BASE: "https://gitlab.ssec.wisc.edu/cspp_geo/geosphere"
# required:
SUBCOMP_REPOS: ""
SUBCOMP_CHART_DIR: ""
script:
- repos_url="${SUBCOMP_REPOS_BASE}/${SUBCOMP_REPOS}"
- git clone --depth 1 $repos_url
- cd ${SUBCOMP_REPOS}
# most recent docker image should be tagged with most recent SHA
- docker_tag=$(git rev-parse --short=8 HEAD)
- echo $docker_tag
- cd chart
# make the docker tag available in later stages