Something went wrong on our end
-
David Hoese authoredDavid Hoese authored
gitlab-ci.yaml 6.88 KiB
# This file is included as part of the main repository .gitlab-ci.yml file
# NOTE: Since this is running from the root of the repository all referenced
# files must be relative to the root directory.
# Most jobs in this file are only meant to be run when a git tag is created
# Prerequisites:
# Create TLS certificate secret:
# kubectl create -n geosphere secret tls geosphere-tls-certs --cert=geosphere_ssec_wisc_edu.crt --key=geosphere_ssec_wisc_edu.key
gs create geotiff storage:
extends: .helm_based_job
stage: create storage
script:
- ns=$(./helpers/get_namespace.sh)
# copy secret kubeconfig to the mounted (pwd) directory
- cp $kubekorner_k3s_config .
- kubeconfig=$(basename $kubekorner_k3s_config)
- ./helpers/create_pvc.sh "$ns" "ci_geosphere/geotiff-pvc.yaml" "cspp-geo-geo2grid" "$kubeconfig"
# this job doesn't actually need any artifacts from previous jobs
dependencies: []
rules:
- if: "$CI_COMMIT_TAG != null"
- if: '$kubekorner_k3s_config == ""'
when: never
- changes:
- ci_geosphere/geotiff-pvc.yaml
- if: $CREATE_STORAGE
gs create shapefile storage:
extends: .helm_based_job
stage: create storage
script:
- ns=$(./helpers/get_namespace.sh)
# copy secret kubeconfig to the mounted (pwd) directory
- cp $kubekorner_k3s_config .
- kubeconfig=$(basename $kubekorner_k3s_config)
- ./helpers/create_pvc.sh "$ns" "ci_geosphere/shapefiles-pvc.yaml" "geosphere-tile-gen-shapefiles" "$kubeconfig"
# this job doesn't actually need any artifacts from previous jobs
dependencies: []
rules:
- if: "$CI_COMMIT_TAG != null"
- if: '$kubekorner_k3s_config == ""'
when: never
- changes:
- ci_geosphere/shapefiles-pvc.yaml
- if: $CREATE_STORAGE
gs deploy rabbit:
environment:
name: geosphere
url: http://geosphere.ssec.wisc.edu
extends: .helm_based_job
stage: deploy rabbit
script:
- ./deploy_rabbitmq.sh ci_geosphere
# this job doesn't actually need any artifacts from previous jobs
dependencies: []
rules:
- if: "$CI_COMMIT_TAG != null"
- if: '$kubekorner_k3s_config == ""'
when: never
# no need to build if another project triggered us
- if: $CI_PIPELINE_SOURCE == "pipeline"
when: never
- changes:
- ci_geosphere/values-geosphere-rabbit.yaml
- if: $DEPLOY_RABBIT
gs deploy g16 grb:
# environment: