mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
f8bd506326
* [FEATURE] Embed static assets in Go binary * Refactor/consolidate code and specify public_html via configuration * Update docs and config template for assets * Update AUR package pre-requisites and systemd unit * Include static assets as Buildkite and GitHub artifacts * Remove references to PUBLIC_DIR * Only serve assets via embedded filesystem and remove configuration references * Update authelia-scripts helper to build the embedded filesystem * Mock the embedded filesystem for unit tests Add to gitignore to ensure this isn't overwritten. * Move go:generate to satisfy linter
25 lines
849 B
Bash
Executable File
25 lines
849 B
Bash
Executable File
#! /bin/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 "/pkgver=/c\pkgver=${BUILDKITE_TAG//v/}" PKGBUILD && \
|
|
sed -i "/pkgrel=/c\pkgrel=1" PKGBUILD && \
|
|
docker run --rm -v $PWD:/build authelia/aurpackager bash -c "cd /build && updpkgsums"
|
|
else
|
|
sed -i "/pkgver=/c\pkgver=${GITTAG}" PKGBUILD && \
|
|
sed -i "/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 |