forked from pool/prometheus-webhook-snmp-image
6fac81f844
Get the image containing the Prometheus SNMP webhook into registry.opensuse.org. OBS-URL: https://build.opensuse.org/request/show/835207 OBS-URL: https://build.opensuse.org/package/show/server:monitoring/prometheus-webhook-snmp-image?expand=0&rev=1
12 lines
277 B
Bash
12 lines
277 B
Bash
#!/bin/bash
|
|
#
|
|
# Generate the kiwi file for the given target.
|
|
|
|
image="prometheus-webhook-snmp-image"
|
|
target=${1:-tumbleweed}
|
|
if [ ! -e ${target}.xml ]; then
|
|
echo "Unknown target: ${target}.xml must exist!"
|
|
exit 1
|
|
fi
|
|
xsltproc "${image}.xsl" "${target}.xml" > "${image}.kiwi"
|