Skip to content

Commit 02ab5e5

Browse files
authored
Merge pull request #3 from vyzigold/add-image-make-targets
Add image build and push make targets
2 parents 78bc835 + 5597982 commit 02ab5e5

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

Makefile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
# limitations under the License.
1313

1414
# Needs to be defined before including Makefile.common to auto-generate targets
15+
16+
IMG ?= quay.io/openstack-k8s-operators/mysqld-exporter:latest
17+
1518
DOCKER_ARCHS ?= amd64 armv7 arm64
1619

1720
all: vet
@@ -28,3 +31,11 @@ test-docker-single-exporter:
2831
./test_image.sh "$(DOCKER_IMAGE_NAME):$(DOCKER_IMAGE_TAG)" 9104
2932

3033
.PHONY: test-docker
34+
35+
.PHONY: docker-build
36+
docker-build: ## Build container image
37+
podman build -t ${IMG} -f Containerfile .
38+
39+
.PHONY: docker-push
40+
docker-push: ## Push container image
41+
podman push ${IMG}

0 commit comments

Comments
 (0)