Skip to content
Snippets Groups Projects
Commit f2ee27ee authored by Jan David Mol's avatar Jan David Mol
Browse files

mention all components once

parent 506e5be6
No related branches found
No related tags found
1 merge request!1008L2SS-2062: Separate rendering and deploying
...@@ -11,11 +11,7 @@ stages: ...@@ -11,11 +11,7 @@ stages:
# To deploy manually, get the env.yaml and the .levant.nomad file, # To deploy manually, get the env.yaml and the .levant.nomad file,
# and run docker run --rm -i --net=host -v /path/to/env.yaml:/env.yaml:ro hashicorp/levant deploy --var-file=/env.yaml /dev/stdin < /path/to/file.levant.nomad # and run docker run --rm -i --net=host -v /path/to/env.yaml:/env.yaml:ro hashicorp/levant deploy --var-file=/env.yaml /dev/stdin < /path/to/file.levant.nomad
render_levant: .components:
stage: render
image:
name: hashicorp/levant
entrypoint: [ "" ]
parallel: parallel:
matrix: matrix:
- COMPONENT: - COMPONENT:
...@@ -33,6 +29,13 @@ render_levant: ...@@ -33,6 +29,13 @@ render_levant:
- snmp-exporter - snmp-exporter
- landing-page - landing-page
- rpc-server - rpc-server
render_levant:
extends: .components
stage: render
image:
name: hashicorp/levant
entrypoint: [ "" ]
script: script:
- | - |
if [ "${STATION}" == "dts-lab" ]; then if [ "${STATION}" == "dts-lab" ]; then
...@@ -56,6 +59,7 @@ render_levant: ...@@ -56,6 +59,7 @@ render_levant:
- ${STATION}-${COMPONENT}.nomad - ${STATION}-${COMPONENT}.nomad
deploy_nomad: deploy_nomad:
extends: .components
stage: deploy stage: deploy
# gitlab evaluates parallel.matrix after needs/dependencies, # gitlab evaluates parallel.matrix after needs/dependencies,
# so we cannot use $COMPONENT in the dependencies. # so we cannot use $COMPONENT in the dependencies.
...@@ -64,23 +68,6 @@ deploy_nomad: ...@@ -64,23 +68,6 @@ deploy_nomad:
- render_levant - render_levant
dependencies: dependencies:
- render_levant - render_levant
parallel:
matrix:
- COMPONENT:
- mesh-gateway
- monitoring
- logging
- tango
- object-storage
- object-replication
- sdptr
- device-server
- dsconfig
- ec-sim
- jupyter
- snmp-exporter
- landing-page
- rpc-server
image: image:
name: hashicorp/nomad name: hashicorp/nomad
entrypoint: [ "" ] entrypoint: [ "" ]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment