ci: test export

This commit is contained in:
Michael Grote 2023-06-28 14:52:13 +02:00
parent 693b52f536
commit de652ed9e6

View file

@ -19,7 +19,7 @@ steps:
- cd sanoid - cd sanoid
- # checkout latest stable release or stay on master for bleeding edge stuff (but expect bugs!) - # checkout latest stable release or stay on master for bleeding edge stuff (but expect bugs!)
- git checkout $(git tag | grep "^v" | tail -n 1) - git checkout $(git tag | grep "^v" | tail -n 1)
- version=$(git tag | grep "^v" | tail -n 1 | tr -d v) - export version=$(git tag | grep "^v" | tail -n 1 | tr -d v)
- echo $version - echo $version
- ln -s packages/debian . - ln -s packages/debian .
- dpkg-buildpackage -uc -us - dpkg-buildpackage -uc -us
@ -29,8 +29,6 @@ steps:
- cd .. - cd ..
- pwd - pwd
- ls -lah - ls -lah
- echo v=$version > env
- source env
- cp sanoid_$version_all.deb sanoid_latest_all.deb - cp sanoid_$version_all.deb sanoid_latest_all.deb
- cp sanoid_$version_all.deb sanoid_${DRONE_COMMIT_BRANCH}_all.deb - cp sanoid_$version_all.deb sanoid_${DRONE_COMMIT_BRANCH}_all.deb
- | - |