Skip to content

Commit d6f76f2

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 d6f76f2

2 files changed

Lines changed: 34 additions & 0 deletions

File tree

.zuul.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
- job:
3+
name: prometheus-podman-exporter-content-provider
4+
parent: telemetry-container-image-content-provider
5+
description: |
6+
Build prometheus-podman-exporter container image from the current change.
7+
required-projects:
8+
- name: openstack-k8s-operators/prometheus-podman-exporter
9+
vars:
10+
container_build_src: "{{ ansible_user_dir }}/src/github.com/openstack-k8s-operators/prometheus-podman-exporter"
11+
container_build_image_name: prometheus-podman-exporter
12+
container_update_var_name: cifmw_update_containers_edpmpodmanexporterImage
13+
14+
- project:
15+
name: openstack-k8s-operators/prometheus-podman-exporter
16+
github-check:
17+
jobs:
18+
- prometheus-podman-exporter-content-provider
19+
- telemetry-openstack-meta-content-provider-master:
20+
override-checkout: main
21+
- functional-tests-osp18:
22+
dependencies:
23+
- telemetry-openstack-meta-content-provider-master
24+
- prometheus-podman-exporter-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)