ci(buildkite): fix missing commit in build-info for authelia aur package (#2609)

pull/2611/head
Amir Zarrinkafsh 2021-11-18 11:57:11 +11:00 committed by GitHub
parent d04706eb2e
commit dbbb506fa5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -7,12 +7,12 @@ 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 && \
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
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" && \