Skip to content

Commit 97c2cae

Browse files
authored
Replace envs in with with the output (#2703)
1 parent 77533e5 commit 97c2cae

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

.github/workflows/cicd.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ jobs:
3434
# exporting env vars to be used in invoked workflows
3535
py_ver: ${{ env.PY_VER }}
3636
go_ver: ${{ env.GO_VER }}
37+
runtime: ${{ env.RUNTIME }}
3738
steps:
3839
- id: set-outputs
3940
run: |
@@ -138,7 +139,7 @@ jobs:
138139
uses: ./.github/workflows/smoke-tests.yml
139140
with:
140141
py_ver: ${{ needs.process-gitref.outputs.py_ver }}
141-
runtime: ${{ env.RUNTIME }}
142+
runtime: ${{ needs.process-gitref.outputs.runtime }}
142143
secrets: inherit
143144
needs:
144145
- file-changes
@@ -282,7 +283,7 @@ jobs:
282283
uses: ./.github/workflows/srlinux-tests.yml
283284
with:
284285
py_ver: ${{ needs.process-gitref.outputs.py_ver }}
285-
runtime: ${{ env.RUNTIME }}
286+
runtime: ${{ needs.process-gitref.outputs.runtime }}
286287
needs:
287288
- file-changes
288289
- process-gitref
@@ -354,7 +355,7 @@ jobs:
354355
- process-gitref
355356
with:
356357
py_ver: ${{ needs.process-gitref.outputs.py_ver }}
357-
runtime: ${{ env.RUNTIME }}
358+
runtime: ${{ needs.process-gitref.outputs.runtime }}
358359

359360
kind-tests:
360361
uses: ./.github/workflows/kind-tests.yml
@@ -364,7 +365,7 @@ jobs:
364365
- process-gitref
365366
with:
366367
py_ver: ${{ needs.process-gitref.outputs.py_ver }}
367-
runtime: ${{ env.RUNTIME }}
368+
runtime: ${{ needs.process-gitref.outputs.runtime }}
368369

369370
# sros-tests:
370371
# uses: ./.github/workflows/sros-tests.yml
@@ -391,7 +392,7 @@ jobs:
391392
- process-gitref
392393
with:
393394
py_ver: ${{ needs.process-gitref.outputs.py_ver }}
394-
runtime: ${{ env.RUNTIME }}
395+
runtime: ${{ needs.process-gitref.outputs.runtime }}
395396

396397
cisco_iol-tests:
397398
uses: ./.github/workflows/cisco_iol-tests.yml
@@ -401,7 +402,7 @@ jobs:
401402
- process-gitref
402403
with:
403404
py_ver: ${{ needs.process-gitref.outputs.py_ver }}
404-
runtime: ${{ env.RUNTIME }}
405+
runtime: ${{ needs.process-gitref.outputs.runtime }}
405406

406407
fdio_vpp-tests:
407408
uses: ./.github/workflows/fdio_vpp-tests.yml
@@ -411,7 +412,7 @@ jobs:
411412
- process-gitref
412413
with:
413414
py_ver: ${{ needs.process-gitref.outputs.py_ver }}
414-
runtime: ${{ env.RUNTIME }}
415+
runtime: ${{ needs.process-gitref.outputs.runtime }}
415416

416417
vyosnetworks_vyos-tests:
417418
uses: ./.github/workflows/vyosnetworks_vyos-tests.yml
@@ -421,7 +422,7 @@ jobs:
421422
- process-gitref
422423
with:
423424
py_ver: ${{ needs.process-gitref.outputs.py_ver }}
424-
runtime: ${{ env.RUNTIME }}
425+
runtime: ${{ needs.process-gitref.outputs.runtime }}
425426

426427
# a job that downloads coverage artifact and uses codecov to upload it
427428
coverage:

docs/manual/inventory.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ node2:
215215

216216
///
217217

218-
The `platform` field can be influenced to support Napalm/Netmiko or scrapi compliant names. To influence the platform used set the `CLAB_NORNIR_PLATFORM_NAME_SCHEMA` env variable to either `napalm` or `scrapi` as the value. By default the platform will be set to the `kind`. Further reading is available below:
218+
The `platform` field can be influenced to support Napalm/Netmiko or Scrapli compliant names. To influence the platform used set the `CLAB_NORNIR_PLATFORM_NAME_SCHEMA` env variable to either `napalm` or `scrapi` as the value. By default the platform will be set to the `kind`. Further reading is available below:
219219
[scrapli core](https://carlmontanari.github.io/scrapli/reference/driver/core/)
220220
[scrapli community](https://github.com/scrapli/scrapli_community)
221221
[napalm drivers](https://napalm.readthedocs.io/en/latest/support/index.html#general-support-matrix)
@@ -229,7 +229,7 @@ Every time a user runs a `deploy` command, containerlab automatically exports in
229229
Containerlab internal data that is submitted for export via the template, has the following structure:
230230

231231
```golang
232-
--8<-- "clab/export.go:37:44"
232+
--8<-- "core/export.go:37:44"
233233
```
234234

235235
To get the full list of fields available for export, you can export topology data with the following template `--export-template /etc/containerlab/templates/export/full.tmpl`. Note, some fields exported via `full.tmpl` might contain sensitive information like TLS private keys. To customize export data, it is recommended to start with a copy of `auto.tmpl` and change it according to your needs.

0 commit comments

Comments
 (0)