Skip to content

Commit df436a8

Browse files
Use 'viash ns list' again to set matrix in main_build CI
1 parent 9ec83ce commit df436a8

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

.github/workflows/main-build.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,10 @@ jobs:
8585
# store component locations
8686
- id: set_matrix
8787
run: |
88-
component_json=$(bin/viash ns exec -p docker -s src -a 'bin/viash config view -p docker --format json --parse_argument_groups {}' | jq -s . | jq -c '[ .[] | { "name": .functionality.name, "namespace": .functionality.namespace, "config": .info.config } ]')
89-
echo "component_matrix=$component_json" >> $GITHUB_OUTPUT
90-
outputs:
91-
component_matrix: ${{ steps.set_matrix.outputs.component_matrix }}
92-
cachehash: ${{ steps.cachehash.outputs.cachehash }}
88+
component_json=$(bin/viash ns list -p docker --format json | jq -c '[ .[] | { "name": .functionality.name, "namespace": .functionality.namespace, "config": .info.config } ]')
89+
outputs:
90+
component_matrix: ${{ steps.set_matrix.outputs.component_matrix }}
91+
cachehash: ${{ steps.cachehash.outputs.cachehash }}
9392

9493
# phase 2
9594
build_containers:

0 commit comments

Comments
 (0)