ci(buildkite): fix apt repo readme (#2245)

Image links in the apt repo README.md were broken as the file uploaded without the necessary modifications.
pull/2244/head^2
Amir Zarrinkafsh 2021-08-05 16:58:08 +10:00 committed by GitHub
parent 2c3bc4a133
commit b415770548
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -8,7 +8,8 @@ for ARCH in amd64 arm64 armhf; do
echo "--- :debian: :fedora: :ubuntu: Deploy APT repository package for architecture: ${ARCH}" echo "--- :debian: :fedora: :ubuntu: Deploy APT repository package for architecture: ${ARCH}"
curl -s -H "Authorization: Bearer ${BALTO_TOKEN}" \ curl -s -H "Authorization: Bearer ${BALTO_TOKEN}" \
-F "distribution=all" \ -F "distribution=all" \
-F "readme=<$(echo README.md | sed -r 's/(\<img\ src\=\")(\.\/)/\1https:\/\/github.com\/authelia\/authelia\/raw\/master\//' | sed 's/\.\//https:\/\/github.com\/authelia\/authelia\/blob\/master\//g')" \
-F "package=@authelia_${BUILDKITE_TAG//v}-1_${ARCH}.deb" \ -F "package=@authelia_${BUILDKITE_TAG//v}-1_${ARCH}.deb" \
--form-string "readme=$(cat README.md | sed -r 's/(\<img\ src\=\")(\.\/)/\1https:\/\/github.com\/authelia\/authelia\/raw\/master\//' | sed 's/\.\//https:\/\/github.com\/authelia\/authelia\/blob\/master\//g')" \
https://apt.authelia.com/stable/debian/upload/ https://apt.authelia.com/stable/debian/upload/
echo -e "\n"
done done