X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=blobdiff_plain;f=SPECS%2Fcaas-custom_metrics.spec;h=fff433acfeafe67a25e25bde3a84190a8f8cbad9;hb=41e97b6c42e1ef28b40924005ec01affa58ea543;hp=7ee14f43139e18976c8fd8e5d95268d7242f6324;hpb=d254ec439e14213a84cc246cf5995617fc454091;p=ta%2Fcaas-metrics.git diff --git a/SPECS/caas-custom_metrics.spec b/SPECS/caas-custom_metrics.spec index 7ee14f4..fff433a 100644 --- a/SPECS/caas-custom_metrics.spec +++ b/SPECS/caas-custom_metrics.spec @@ -15,8 +15,9 @@ %define COMPONENT custom_metrics %define RPM_NAME caas-%{COMPONENT} %define RPM_MAJOR_VERSION 0.5.0 -%define RPM_MINOR_VERSION 1 -%define DEPENDENCY_MANAGER_VERSION 0.5.0 +%define RPM_MINOR_VERSION 3 +%define go_version 1.12.9 +%define DEP_MAN_VERSION 0.5.4 %define IMAGE_TAG %{RPM_MAJOR_VERSION}-%{RPM_MINOR_VERSION} Name: %{RPM_NAME} @@ -25,7 +26,7 @@ Release: %{RPM_MINOR_VERSION}%{?dist} Summary: Containers as a Service Custom Metrics component License: %{_platform_license} and Apache License URL: https://github.com/DirectXMan12/k8s-prometheus-adapter -BuildArch: x86_64 +BuildArch: %{_arch} Vendor: %{_platform_vendor} and DirectXMan12/k8s-prometheus-adapter unmodified Source0: %{name}-%{version}.tar.gz @@ -49,7 +50,8 @@ docker build \ --build-arg http_proxy="${http_proxy}" \ --build-arg https_proxy="${https_proxy}" \ --build-arg no_proxy="${no_proxy}" \ - --build-arg CUSTOM_METRICS="%{RPM_MAJOR_VERSION}" \ + --build-arg CUSTOM_METRICS_VERSION="%{RPM_MAJOR_VERSION}" \ + --build-arg go_version="%{go_version}" \ --tag %{COMPONENT}:%{IMAGE_TAG} \ %{_builddir}/%{RPM_NAME}-%{RPM_MAJOR_VERSION}/docker-build/%{COMPONENT}/