Skip to content
Snippets Groups Projects
Verified Commit e638bffd authored by David Hoese's avatar David Hoese
Browse files

Rearrange CI file usage to make files available to helm

parent 77191032
Branches remove-todo
No related tags found
No related merge requests found
...@@ -68,9 +68,9 @@ build ci: ...@@ -68,9 +68,9 @@ build ci:
# most recent docker image should be tagged with most recent SHA # most recent docker image should be tagged with most recent SHA
- docker_tag=$(git rev-parse --short HEAD) - docker_tag=$(git rev-parse --short HEAD)
- echo $docker_tag - echo $docker_tag
# make the docker tag available in later stages
- echo export docker_tag=$docker_tag >cibuild.env
- cd chart - cd chart
# make the docker tag available in later stages
- echo export docker_tag=$docker_tag >${SUBCOMP_CHART_DIR}/cibuild.env
- |- - |-
sed -i "s/^appVersion: .*\$/appVersion: ${docker_tag}/g" ${SUBCOMP_CHART_DIR}/Chart.yaml sed -i "s/^appVersion: .*\$/appVersion: ${docker_tag}/g" ${SUBCOMP_CHART_DIR}/Chart.yaml
# debug: # debug:
...@@ -78,7 +78,6 @@ build ci: ...@@ -78,7 +78,6 @@ build ci:
artifacts: artifacts:
paths: paths:
- ${SUBCOMP_REPOS}/chart/${SUBCOMP_CHART_DIR} - ${SUBCOMP_REPOS}/chart/${SUBCOMP_CHART_DIR}
- ${SUBCOMP_REPOS}/cibuild.env
expire_in: 6 hours expire_in: 6 hours
# XXX: Do we always want to clone the subcomponent # XXX: Do we always want to clone the subcomponent
# rules: # rules:
...@@ -105,13 +104,14 @@ deploy_g16_grb: ...@@ -105,13 +104,14 @@ deploy_g16_grb:
else else
ns="geosphere-test"; ns="geosphere-test";
fi fi
- cd geosphere-grb - cd geosphere-grb/chart
- source cibuild.env - source cibuild.env
- echo "Deploying version $docker_tag to cluster namespace $ns"
- cd chart
# copy secret kubeconfig to the mounted (pwd) directory # copy secret kubeconfig to the mounted (pwd) directory
- cp $kubekorner_k3s_config . - cp $kubekorner_k3s_config .
- kubeconfig=$(basename $kubekorner_k3s_config) - kubeconfig=$(basename $kubekorner_k3s_config)
- echo "Deploying version $docker_tag to cluster namespace $ns"
# copy extra values files to the local directory (where helm has access via docker mount)
- cp ../../production/values-g16-grb.yaml .
# namespace names are the same as domain names # namespace names are the same as domain names
- helm upgrade -v 2 --install --kubeconfig $kubeconfig --namespace $ns --set grbNotifier.image.dockerTag=$docker_tag -f ../../production/values-g16-grb.yaml cspp-geo-grb cspp-geo-grb/ - helm upgrade -v 2 --install --kubeconfig $kubeconfig --namespace $ns --set grbNotifier.image.dockerTag=$docker_tag -f ../../production/values-g16-grb.yaml cspp-geo-grb cspp-geo-grb/
needs: needs:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment