Skip to content

Commit

Permalink
test: inspect manifests in manifest-only jobs
Browse files Browse the repository at this point in the history
We don't build ppc64le and s390x in gitlab CI, we only generate the
manifests to ensure there's no issues with manifest generation and
package selection.  However, we can also validate them using 'osbuild
--inspect' to make sure they're at least valid manifests.

Signed-off-by: Achilleas Koutsou <achilleas@koutsou.net>
  • Loading branch information
achilleas-k committed Apr 11, 2024
1 parent 2db6330 commit cdbf17d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion test/scripts/configure-generators
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,14 @@ generate-manifests-{distro}-{arch}:
INTERNAL_NETWORK: "true"
script:
- sudo ./test/scripts/install-dependencies
- go run ./cmd/gen-manifests --arches {arch} --distros {distro} --workers 10
- go run ./cmd/gen-manifests --arches {arch} --distros {distro} --workers 10 --metadata=false --output ./manifests
- for manifest in ./manifests/*; do
if osbuild --inspect $manifest > output; then
echo "$manifest OK";
else
cat output;
fi;
done
"""


Expand Down

0 comments on commit cdbf17d

Please sign in to comment.