Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: define specific release templates for amd64 and s390x archs #656

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 31 additions & 1 deletion makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading