Compare commits

..

No commits in common. "73265631a22a27852352b44eae809c74cd8970b0" and "07cf0d8042babe740ba78454bd2676fa9810ba1c" have entirely different histories.

5 changed files with 9 additions and 5 deletions

View File

@ -20,6 +20,7 @@ build:apt:
stage: build stage: build
before_script: before_script:
- apt-get update -qq && apt-get install -qq -y build-essential - apt-get update -qq && apt-get install -qq -y build-essential
- chmod 0755 -R .
# create build directory for .deb sources # create build directory for .deb sources
- mkdir build - mkdir build
# copy install instructions # copy install instructions
@ -47,15 +48,18 @@ build:pamac:
- if: $CI_COMMIT_BRANCH == "archlinux-makepkg" - if: $CI_COMMIT_BRANCH == "archlinux-makepkg"
before_script: before_script:
- pacman -Syu --noconfirm git - 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 # "makepkg" don't likes root user
- useradd --no-create-home --shell=/bin/false build && usermod -L build - useradd --no-create-home --shell=/bin/false build && usermod -L build
- 'echo "build ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers' - 'echo "build ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers'
- 'echo "root ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers' - 'echo "root ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers'
- chown -R build:build . - chown -R build:build .
# move .PKGBUILD contents to root directory # cd into "build/"
- mv .PKGBUILD/* . - cd build/
script: script:
- pwd
# download dependencies # download dependencies
- source PKGBUILD && pacman -Syu --noconfirm --needed --asdeps "${makedepends[@]}" "${depends[@]}" - source PKGBUILD && pacman -Syu --noconfirm --needed --asdeps "${makedepends[@]}" "${depends[@]}"
# build # build
@ -63,7 +67,7 @@ build:pamac:
artifacts: artifacts:
expire_in: 1 week expire_in: 1 week
paths: paths:
- "*.pkg.tar.zst" - build/*.pkg.tar.zst
test: test:
image: python:3.10-slim-bullseye image: python:3.10-slim-bullseye

View File

@ -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') depends=('python' 'python-jose' 'python-starlette' 'python-httpx' 'python-fastapi' 'python-dotenv' 'python-dateutil' 'python-sqlalchemy' 'python-pycryptodome' 'uvicorn' 'python-markdown' 'openssl')
provider=("$pkgname") provider=("$pkgname")
install="$pkgname.install" install="$pkgname.install"
source=('git+file:///builds/oscar.krause/fastapi-dls' # 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.default"
"$pkgname.service") "$pkgname.service")
sha256sums=('SKIP' sha256sums=('SKIP'