shfmt -w globally
This commit is contained in:
parent
4e207414d4
commit
d5f66e4c0a
27 changed files with 378 additions and 375 deletions
|
@ -36,20 +36,20 @@ sudo -u user APKBUILD=alpine/forgejo-2173/APKBUILD abuild -r
|
|||
# upload new package
|
||||
cd packages/alpine/x86_64/
|
||||
for file in $(find . -name '*.apk' -type f | sed -e 's,./,,'); do
|
||||
# remove old package
|
||||
curl \
|
||||
--fail \
|
||||
-H "Authorization: token $forgejo_token" \
|
||||
-X DELETE \
|
||||
"$forgejo_url/api/packages/root/alpine/3.19/e2e-tests/$file" \
|
||||
|| true
|
||||
# remove old package
|
||||
curl \
|
||||
--fail \
|
||||
-H "Authorization: token $forgejo_token" \
|
||||
-X DELETE \
|
||||
"$forgejo_url/api/packages/root/alpine/3.19/e2e-tests/$file" ||
|
||||
true
|
||||
|
||||
# upload new package
|
||||
curl \
|
||||
--fail \
|
||||
-H "Authorization: token $forgejo_token" \
|
||||
-T "$file" \
|
||||
"$forgejo_url/api/packages/root/alpine/3.19/e2e-tests"
|
||||
# upload new package
|
||||
curl \
|
||||
--fail \
|
||||
-H "Authorization: token $forgejo_token" \
|
||||
-T "$file" \
|
||||
"$forgejo_url/api/packages/root/alpine/3.19/e2e-tests"
|
||||
done
|
||||
|
||||
# ensure that the install-if condition works as expected
|
||||
|
@ -57,7 +57,7 @@ apk add openrc
|
|||
(cd /etc/apk/keys && curl -JO $forgejo_url/api/packages/root/alpine/key)
|
||||
echo "$forgejo_url/api/packages/root/alpine/3.19/e2e-tests" >>/etc/apk/repositories
|
||||
apk add forgejo-2174 forgejo-2173
|
||||
[ -e /usr/bin/forgejo_2174 ] # from the installed package
|
||||
[ -e /usr/bin/forgejo_2173 ] # from the installed package
|
||||
[ -e /usr/bin/forgejo_2174 ] # from the installed package
|
||||
[ -e /usr/bin/forgejo_2173 ] # from the installed package
|
||||
[ -e /etc/init.d/forgejo_2174 ] # from the -openrc package installed because of the install-if condition
|
||||
[ -e /etc/init.d/forgejo_2173 ] # from the -openrc package installed because of the install-if condition
|
||||
|
|
Loading…
Add table
Reference in a new issue