mirror of
https://github.com/prometheus/alertmanager
synced 2024-12-25 15:42:18 +00:00
7 lines
292 B
Bash
7 lines
292 B
Bash
|
#!/bin/sh
|
||
|
container=$(buildah from prom/alertmanager)
|
||
|
mnt=$(buildah mount $container)
|
||
|
CGO_ENABLED=0 go build -ldflags="-X 'main.Version=benny'" -o alertmanager cmd/alertmanager/main.go
|
||
|
cp -f ./alertmanager "${mnt}/bin/alertmanager"
|
||
|
buildah commit $container ben-am
|
||
|
buildah unmount $container
|