Skip to content

Commit f57c3b3

Browse files
committed
Add Zuul CI for container builds and functional tests
Add a content-provider job that builds the prometheus-podman-exporter container image and runs it through the telemetry functional test pipeline. Add docker-build and docker-push Makefile targets matching the operator convention. Generated-By: Claude-Code claude-opus-4-6
1 parent 059d1ea commit f57c3b3

2 files changed

Lines changed: 23 additions & 0 deletions

File tree

.zuul.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
- project:
3+
name: openstack-k8s-operators/prometheus-podman-exporter
4+
github-check:
5+
jobs:
6+
- telemetry-container-image-content-provider
7+
- telemetry-openstack-meta-content-provider-master:
8+
override-checkout: main
9+
- functional-tests-osp18:
10+
override-checkout: master
11+
dependencies:
12+
- telemetry-openstack-meta-content-provider-master
13+
- telemetry-container-image-content-provider

Makefile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
IMG ?= quay.io/openstack-k8s-operators/prometheus-podman-exporter:latest
2+
13
PKG_PATH = "github.com/containers/prometheus-podman-exporter"
24
BIN := ./bin
35
GO := go
@@ -182,6 +184,14 @@ _HLP_TGTS_RX = '^[[:print:]]+:.*?\#\# .*$$'
182184
_HLP_TGTS_CMD = grep -E $(_HLP_TGTS_RX) $(MAKEFILE_LIST)
183185
_HLP_TGTS_LEN = $(shell $(_HLP_TGTS_CMD) | cut -d : -f 1 | wc -L)
184186
_HLPFMT = "%-$(_HLP_TGTS_LEN)s %s\n"
187+
.PHONY: docker-build
188+
docker-build: ## Build container image
189+
podman build -t ${IMG} -f Containerfile .
190+
191+
.PHONY: docker-push
192+
docker-push: ## Push container image
193+
podman push ${IMG}
194+
185195
.PHONY: help
186196
help: ## Print listing of key targets with their descriptions
187197
@printf $(_HLPFMT) "Target:" "Description:"

0 commit comments

Comments
 (0)