mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
93e20a44e9
* feat: build and distribute .deb packages Creates .deb packages for distribution via GitHub releases and Buildkite builds for the following architectures: * amd64 * armhf * arm64 * fix: pkgver reference in debpackages.sh * refactor: split deb packaging jobs and quote variables * fix: pipeline upload for debpackages * fix: depends_on key for debpackages * fix: add depends_on: ~ for debpackages step * fix: pre-artifact hook for debpackages * fix: add .deb suffix in pre-artifact hook * fix: variable reference in debhelper.sh * refactor: silence wget output in debhelper.sh * refactor: make build concurrency gate only depend_on docker builds * refactor: make build concurrency gate also depend_on coverage build * refactor: remove dependencies for build concurrency gate
26 lines
839 B
Bash
Executable File
26 lines
839 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
GITTAG=$(git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g')
|
|
|
|
echo "--- :linux: Deploy AUR package: ${PACKAGE}"
|
|
git clone ssh://aur@aur.archlinux.org/"${PACKAGE}".git
|
|
cd "${PACKAGE}" || exit
|
|
|
|
if [[ "${PACKAGE}" != "authelia-git" ]]; then
|
|
sed -i -e "/pkgver=/c pkgver=${BUILDKITE_TAG//v/}" \
|
|
-e '/pkgrel=/c pkgrel=1' PKGBUILD && \
|
|
docker run --rm -v $PWD:/build authelia/aurpackager bash -c "cd /build && updpkgsums"
|
|
else
|
|
sed -i -e "/pkgver=/c pkgver=${GITTAG}" \
|
|
-e '/pkgrel=/c pkgrel=1' PKGBUILD
|
|
fi
|
|
|
|
docker run --rm -v $PWD:/build authelia/aurpackager bash -c "cd /build && makepkg --printsrcinfo >| .SRCINFO" && \
|
|
git add . && \
|
|
if [[ "${PACKAGE}" != "authelia-git" ]]; then
|
|
git commit -m "Update to ${BUILDKITE_TAG}"
|
|
else
|
|
git commit -m "Update to GIT version: ${GITTAG}"
|
|
fi
|
|
git push
|