Switch to Basic Auth with ACCESS_TOKEN for package uploads
All checks were successful
Build libostree Backport / Build libostree Backport (push) Successful in 9m34s
All checks were successful
Build libostree Backport / Build libostree Backport (push) Successful in 9m34s
This commit is contained in:
parent
1c73808c67
commit
22a70aa6f3
1 changed files with 6 additions and 6 deletions
|
|
@ -116,7 +116,7 @@ jobs:
|
|||
|
||||
# Test Debian Package Registry upload
|
||||
echo "Testing Debian Package Registry upload..."
|
||||
response=$(curl -s -w "%{http_code}" -H "Authorization: Bearer ${{ secrets.FORGEJO_TOKEN }}" \
|
||||
response=$(curl -s -w "%{http_code}" --user "robojerk:${{ secrets.ACCESS_TOKEN }}" \
|
||||
--upload-file "steam.deb" \
|
||||
"https://git.raines.xyz/api/packages/robojerk/debian/pool/noble/main/upload")
|
||||
|
||||
|
|
@ -131,7 +131,7 @@ jobs:
|
|||
|
||||
echo ""
|
||||
echo "Testing Generic Package Registry upload..."
|
||||
response=$(curl -s -w "%{http_code}" -H "Authorization: Bearer ${{ secrets.FORGEJO_TOKEN }}" \
|
||||
response=$(curl -s -w "%{http_code}" --user "robojerk:${{ secrets.ACCESS_TOKEN }}" \
|
||||
--upload-file "steam.deb" \
|
||||
"https://git.raines.xyz/api/packages/robojerk/generic/steam/1.0.0.83/steam.deb")
|
||||
|
||||
|
|
@ -262,9 +262,9 @@ jobs:
|
|||
|
||||
echo "File: $filename"
|
||||
|
||||
# Upload to Forgejo's Debian Package Registry using automatic token
|
||||
# Upload to Forgejo's Debian Package Registry using Basic Auth
|
||||
# PUT https://forgejo.example.com/api/packages/{owner}/debian/pool/{distribution}/{component}/upload
|
||||
response=$(curl -s -w "%{http_code}" -H "Authorization: Bearer ${{ secrets.FORGEJO_TOKEN }}" \
|
||||
response=$(curl -s -w "%{http_code}" --user "robojerk:${{ secrets.ACCESS_TOKEN }}" \
|
||||
--upload-file "$deb_file" \
|
||||
"https://git.raines.xyz/api/packages/robojerk/debian/pool/noble/main/upload")
|
||||
|
||||
|
|
@ -297,9 +297,9 @@ jobs:
|
|||
echo "Version: $version"
|
||||
echo "File: $filename"
|
||||
|
||||
# Upload to Forgejo's Generic Package Registry using automatic token
|
||||
# Upload to Forgejo's Generic Package Registry using Basic Auth
|
||||
# PUT https://forgejo.example.com/api/packages/{owner}/generic/{package_name}/{package_version}/{file_name}
|
||||
response=$(curl -s -w "%{http_code}" -H "Authorization: Bearer ${{ secrets.FORGEJO_TOKEN }}" \
|
||||
response=$(curl -s -w "%{http_code}" --user "robojerk:${{ secrets.ACCESS_TOKEN }}" \
|
||||
--upload-file "$deb_file" \
|
||||
"https://git.raines.xyz/api/packages/robojerk/generic/$package_name/$version/$filename")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue