generate version files for klipper and moonraker during build

This commit is contained in:
Markus Küffner
2024-11-09 17:35:43 +01:00
parent 63c3f529a8
commit 2472a2815c
3 changed files with 3 additions and 0 deletions

View File

@@ -7,6 +7,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
<!--
## [Unreleased]
### Added
* klipper & moonraker: generate version file during build to correctly display versions
### Fixed
### Changed
### Removed

View File

@@ -18,6 +18,7 @@ ARG VERSION=master
RUN git clone ${REPO} klipper \
&& cd klipper \
&& git checkout ${VERSION} \
&& python3 scripts/make_version.py prind > klippy/.version \
&& rm -rf .git
RUN venv/bin/pip install -r klipper/scripts/klippy-requirements.txt \

View File

@@ -13,6 +13,7 @@ ARG VERSION=master
RUN git clone ${REPO} moonraker \
&& cd moonraker \
&& git checkout ${VERSION} \
&& echo -n $(git describe --tags)-prind > moonraker/.version \
&& rm -rf .git
RUN python -m venv venv \