mirror of
https://github.com/mkuf/prind.git
synced 2025-10-26 07:46:19 +01:00
generate version files for klipper and moonraker during build
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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 \
|
||||
|
||||
@@ -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 \
|
||||
|
||||
Reference in New Issue
Block a user