From 28d9d9f19e141590572071862bde36d8bb76c67a Mon Sep 17 00:00:00 2001 From: Nestor Acuna Blanco Date: Wed, 27 Nov 2024 09:43:14 +0100 Subject: [PATCH] feat: define specific release templates for amd64 and s390x archs Signed-off-by: Nestor Acuna Blanco --- makefile | 32 +++++++++++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/makefile b/makefile index f29183bc..36601981 100644 --- a/makefile +++ b/makefile @@ -26,8 +26,38 @@ dist/common-templates.yaml: generate done ; \ ) >$@ -release: dist/common-templates.yaml +dist/common-templates-amd64.yaml: + ( \ + echo -n "# Version " ; \ + git describe --always --tags HEAD ; \ + for F in $(ALL_PRESETS) dist/templates/*.yaml; \ + do \ + case "$$F" in \ + *s390x.yaml) ;; \ + *) \ + echo "---" ; \ + echo "# Source: $$F" ; \ + cat $$F ; \ + esac ; \ + done ; \ + ) >$@ + +dist/common-templates-s390x.yaml: + ( \ + echo -n "# Version " ; \ + git describe --always --tags HEAD ; \ + for F in $(ALL_PRESETS) dist/templates/*-s390x.yaml; \ + do \ + echo "---" ; \ + echo "# Source: $$F" ; \ + cat $$F ; \ + done ; \ + ) >$@ + +release: dist/common-templates.yaml dist/common-templates-amd64.yaml dist/common-templates-s390x.yaml cp dist/common-templates.yaml dist/common-templates-$(VERSION).yaml + cp dist/common-templates-amd64.yaml dist/common-templates-amd64-$(VERSION).yaml + cp dist/common-templates-s390x.yaml dist/common-templates-s390x-$(VERSION).yaml e2e-tests: TARGET_ARCH=$(TARGET_ARCH) ./automation/test.sh