should be faster

This commit is contained in:
crystal 2023-09-09 13:27:52 -06:00
parent 36ea51de5a
commit c9399d7358
No known key found for this signature in database
GPG key ID: 1122054731F7CC43

View file

@ -47,7 +47,7 @@ case "$1" in
CI_RELEASE_ASSETS=$(curl $CI_VERIFY_API/api/v1/repos/$CI_VERIFY_REPO/releases/tags/$CI_COMMIT_TAG | jq -c '.assets[]' | grep linux-amd64)
CI_RELEASE_BINARY_URL=$(echo "$CI_RELEASE_ASSETS" | grep linux-amd64\" | jq -r --jsonargs .browser_download_url)
CI_RELEASE_SHA256=$(curl $(echo "$CI_RELEASE_ASSETS" | grep linux-amd64.sha256\" | jq -r --jsonargs .browser_download_url) | cut -d ' ' -f1)
wget --content-disposition $CI_RELEASE_BINARY_URL
wget -nv --content-disposition $CI_RELEASE_BINARY_URL
DOWNLOAD_SHA256=$(sha256sum forgejo-*-linux-amd64 | cut -d ' ' -f1)
if [ $CI_RELEASE_SHA256 != $DOWNLOAD_SHA256 ] ; then
echo "ERROR: Downloaded file didn't match expected SHA256 sum"
@ -112,7 +112,7 @@ case "$1" in
HOME=$FORGEJO_HOME GITEA_WORK_DIR=$FORGEJO_HOME \
forgejo web --config /etc/forgejo/app.ini &
sleep 10
curl http://localhost:3000/
curl http://localhost:3000/ | grep -A 4 "Powered by Forgejo"
exit $?
;;
"install-repo-test")