1
0
mirror of https://github.com/coreos/prometheus-operator.git synced 2026-02-06 00:47:16 +01:00
Files
Simon Pasquier 2961a0f1e2 Use prometheus-alertmanager-test-webhook image from quay.io/prometheus-operator (#5025)
* example/alertmanager-webhook: build image for amd64 and arm64

Closes #5012

Signed-off-by: Simon Pasquier <spasquie@redhat.com>

* test/e2e: remove use of legacy coreos image

Signed-off-by: Simon Pasquier <spasquie@redhat.com>

Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2022-09-19 14:52:23 +00:00

15 lines
609 B
Makefile

IMAGE ?= quay.io/prometheus-operator/prometheus-alertmanager-test-webhook
TAG ?= latest
.PHONY: build
build:
GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -tags netgo -o linux/amd64/ .
GOOS=linux GOARCH=arm64 CGO_ENABLED=0 go build -tags netgo -o linux/arm64/ .
.PHONY: push
push: build
buildah manifest create $(IMAGE):$(TAG)
buildah bud --arch amd64 --build-arg ARCH=amd64 --manifest $(IMAGE):$(TAG) -t $(IMAGE):$(TAG)-amd64 .
buildah bud --arch arm64 --build-arg ARCH=arm64 --manifest $(IMAGE):$(TAG) -t $(IMAGE):$(TAG)-arm64 .
buildah manifest push --all $(IMAGE):$(TAG) docker://$(IMAGE):$(TAG)