mirror of
https://gitea.publichub.eu/oscar.krause/fastapi-dls.git
synced 2024-11-22 22:38:48 +00:00
some refactorings
This commit is contained in:
parent
f27d1c383e
commit
49138fb2e9
@ -48,10 +48,17 @@ build:pamac:
|
||||
- if: $CI_COMMIT_BRANCH == "archlinux-makepkg"
|
||||
before_script:
|
||||
- pacman -Syu --noconfirm git
|
||||
# create build directory for .deb sources
|
||||
- mkdir build
|
||||
# copy install instructions
|
||||
- cp -r PKGBUILD build/
|
||||
# "makepkg" don't likes root user
|
||||
- useradd --no-create-home --shell=/bin/false build && usermod -L build
|
||||
- 'echo "build ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers'
|
||||
- 'echo "root ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers'
|
||||
- chown -R build:build .
|
||||
# cd into "build/"
|
||||
- cd build/
|
||||
script:
|
||||
# download dependencies
|
||||
- source PKGBUILD && pacman -Syu --noconfirm --needed --asdeps "${makedepends[@]}" "${depends[@]}"
|
||||
@ -60,7 +67,7 @@ build:pamac:
|
||||
artifacts:
|
||||
expire_in: 1 week
|
||||
paths:
|
||||
- "*.pkg.tar.zst"
|
||||
- build/*.pkg.tar.zst
|
||||
|
||||
test:
|
||||
image: python:3.10-slim-bullseye
|
||||
|
@ -11,7 +11,7 @@ license=('MIT')
|
||||
depends=('python' 'python-jose' 'python-starlette' 'python-httpx' 'python-fastapi' 'python-dotenv' 'python-dateutil' 'python-sqlalchemy' 'python-pycryptodome' 'uvicorn' 'python-markdown' 'openssl')
|
||||
provider=("$pkgname")
|
||||
install="$pkgname.install"
|
||||
source=('git+https://git.collinwebdesigns.de/oscar.krause/fastapi-dls.git#commit=3d5203dae054020e6f56e5f457fac1fbacc6f05d' # https://gitea.publichub.eu/oscar.krause/fastapi-dls.git
|
||||
source=('git+https://git.collinwebdesigns.de/oscar.krause/fastapi-dls.git#commit=$CI_COMMIT_SHA' # https://gitea.publichub.eu/oscar.krause/fastapi-dls.git
|
||||
"$pkgname.default"
|
||||
"$pkgname.service")
|
||||
sha256sums=('SKIP'
|
Loading…
Reference in New Issue
Block a user