Skip to content

Add GH multinode test, r1 #5

Add GH multinode test, r1

Add GH multinode test, r1 #5

Workflow file for this run

name: Multi node cluster with Vagrant, Ubuntu, Kubespray
on:
push:
# branches: [ main ]
workflow_dispatch:
env:
num_nodes: 4
jobs:
define-nodes:
runs-on: ubuntu-latest
steps:
- run: |
echo "nodes='"$(python -c "print(list(range($num_nodes)))")"'" >>"$GITHUB_ENV"
nodes:
needs: define-nodes
runs-on: ubuntu-latest
env:
nodes: "[0, 1, 2]"
strategy:
matrix:
id: ${{ fromJSON(env.nodes) }}

Check failure on line 27 in .github/workflows/deploy-gh.yaml

View workflow run for this annotation

GitHub Actions / Multi node cluster with Vagrant, Ubuntu, Kubespray

Invalid workflow file

The workflow is not valid. .github/workflows/deploy-gh.yaml (Line: 27, Col: 13): Unrecognized named-value: 'env'. Located at position 10 within expression: fromJSON(env.nodes) .github/workflows/deploy-gh.yaml (Line: 27, Col: 13): Unexpected value '${{ fromJSON(env.nodes) }}'
steps:
- run: |
echo ${{ matrix.id }}