Skip to content

Instantly share code, notes, and snippets.

@achilleas-k
Last active May 14, 2024 12:16
Show Gist options
  • Save achilleas-k/cb504a9796f2c860419a386f97da3627 to your computer and use it in GitHub Desktop.
Save achilleas-k/cb504a9796f2c860419a386f97da3627 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
set -euo pipefail
distro="$1"
arch="$2"
image="$3"
config="$4"
output=$(mktemp -d)
export OSBUILD_TESTING_RNG_SEED=0
go run ./cmd/gen-manifests \
--packages=false --containers=false --commits=false --metadata=false \
--output="${output}" \
--distros="${distro}" \
--arches="${arch}" \
--images="${image}" \
--config=<(echo '{"name": "00-baseline"}')
go run ./cmd/gen-manifests \
--packages=false --containers=false --commits=false --metadata=false \
--output="${output}" \
--distros="${distro}" \
--arches="${arch}" \
--images="${image}" \
--config="${config}"
vimdiff "${output}"/*.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment