-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Jacob Heider <jacob@pkgx.dev>
- Loading branch information
1 parent
4947b13
commit 323c03f
Showing
1 changed file
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
distributable: | ||
url: git+https://github.com/ceph/ceph.git | ||
ref: v{{version}} | ||
|
||
display-name: cephadm | ||
|
||
versions: | ||
github: ceph/ceph/tags | ||
|
||
dependencies: | ||
pkgx.sh: ^1 | ||
|
||
build: | ||
dependencies: | ||
python.org: ^3 | ||
gnu.org/coreutils: '*' | ||
env: | ||
linux: | ||
TMPDIR: $(mktemp -d -p /tmp) | ||
BUILD_FLAGS: | ||
- --set-version-var CEPH_GIT_VER="$(git rev-parse HEAD)" | ||
- --set-version-var CEPH_GIT_NICE_VER="$(git describe)" | ||
- --set-version-var CEPH_RELEASE="$(sed -n '1p' ./src/ceph_release)" | ||
- --set-version-var CEPH_RELEASE_NAME="$(sed -n '2p' ./src/ceph_release)" | ||
- --set-version-var CEPH_RELEASE_TYPE="$(sed -n '3p' ./src/ceph_release)" | ||
script: | ||
- bkpyvenv stage {{prefix}} {{version}} | ||
- ./src/cephadm/build.sh ${BUILD_FLAGS} {{prefix}}/venv/bin/cephadm | ||
- bkpyvenv seal {{prefix}} cephadm | ||
|
||
provides: | ||
- bin/cephadm | ||
|
||
test: test "$(cephadm version|cut -d' ' -f3)" = {{version.tag}} |