Compare commits

...

2 Commits

Author SHA1 Message Date
9d6466f96e use version variable in PKGBUILD 2022-12-29 12:12:26 +01:00
85e2ef6930 use version variable in DEBIAN/control 2022-12-29 12:12:03 +01:00
3 changed files with 10 additions and 2 deletions

View File

@ -1,5 +1,5 @@
Package: fastapi-dls Package: fastapi-dls
Version: 1.0 Version: 0.0
Architecture: all Architecture: all
Maintainer: Oscar Krause oscar.krause@collinwebdesigns.de Maintainer: Oscar Krause oscar.krause@collinwebdesigns.de
Depends: python3, python3-fastapi, python3-uvicorn, python3-dotenv, python3-dateutil, python3-jose, python3-sqlalchemy, python3-pycryptodome, python3-markdown, uvicorn, openssl Depends: python3, python3-fastapi, python3-uvicorn, python3-dotenv, python3-dateutil, python3-jose, python3-sqlalchemy, python3-pycryptodome, python3-markdown, uvicorn, openssl

View File

@ -2,7 +2,7 @@
# Maintainer: Oscar Krause <oscar.krause@collinwebdesigns.de> # Maintainer: Oscar Krause <oscar.krause@collinwebdesigns.de>
pkgname=fastapi-dls pkgname=fastapi-dls
pkgver=1.0 pkgver=0.0
pkgrel=1 pkgrel=1
pkgdesc='NVIDIA DLS server implementation with FastAPI' pkgdesc='NVIDIA DLS server implementation with FastAPI'
arch=('any') arch=('any')
@ -18,6 +18,11 @@ sha256sums=('SKIP'
'd8b2216b67a2f8f35ad6f07c825839794f7c34456a72caadd9fc110810348d90' 'd8b2216b67a2f8f35ad6f07c825839794f7c34456a72caadd9fc110810348d90'
'10cb98d64f8bf37b11a60510793c187cc664e63c895d1205781c21fa2e703f32') '10cb98d64f8bf37b11a60510793c187cc664e63c895d1205781c21fa2e703f32')
pkgver() {
source $srcdir/$pkgname/version.env
return ${VERSION}
}
check() { check() {
cd "$srcdir/$pkgname/test" cd "$srcdir/$pkgname/test"
mkdir "$srcdir/$pkgname/app/cert" mkdir "$srcdir/$pkgname/app/cert"

View File

@ -23,6 +23,7 @@ build:apt:
- if: $CI_COMMIT_BRANCH - if: $CI_COMMIT_BRANCH
before_script: before_script:
- echo "COMMIT=${CI_COMMIT_SHA}" >> version.env - echo "COMMIT=${CI_COMMIT_SHA}" >> version.env
- source version.env
# install build dependencies # install build dependencies
- apt-get update -qq && apt-get install -qq -y build-essential - apt-get update -qq && apt-get install -qq -y build-essential
# create build directory for .deb sources # create build directory for .deb sources
@ -40,7 +41,9 @@ build:apt:
# cd into "build/" # cd into "build/"
- cd build/ - cd build/
script: script:
- sed -i -E 's/(Version\:\s)0.0/\1'"$VERSION"'/g' DEBIAN/control
- dpkg -b . build.deb - dpkg -b . build.deb
- dpkg -I build.deb
artifacts: artifacts:
expire_in: 1 week expire_in: 1 week
paths: paths: