mirror of
https://github.com/getAlby/hub.git
synced 2026-08-13 12:33:39 +02:00
feat: avoid leaking api token in marketplace submit script
Some checks failed
Multiplatform Docker build & push / build (push) Has been cancelled
Some checks failed
Multiplatform Docker build & push / build (push) Has been cancelled
This commit is contained in:
parent
badad7ea0c
commit
4bd4f8c48b
1 changed files with 5 additions and 9 deletions
|
|
@ -1,4 +1,6 @@
|
|||
#!/bin/bash -x
|
||||
#!/bin/bash
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
IMAGE_ID=$(jq '.builds[-1].artifact_id | split(":")[1] | tonumber' manifest.json)
|
||||
DIGITALOCEAN_APP_ID=236815239
|
||||
|
|
@ -26,11 +28,5 @@ echo https://api.digitalocean.com/api/v1/vendor-portal/apps/${DIGITALOCEAN_APP_I
|
|||
curl --fail-with-body -X PATCH -H "Content-Type: application/json" -H "Authorization: Bearer ${DIGITALOCEAN_API_TOKEN}" \
|
||||
-d @update.json https://api.digitalocean.com/api/v1/vendor-portal/apps/${DIGITALOCEAN_APP_ID}
|
||||
|
||||
if [ $? -eq 0 ]
|
||||
then
|
||||
echo "Digital Ocean Market Place update complete"
|
||||
rm update.json
|
||||
else
|
||||
echo "Digital Ocean Market Place update failed"
|
||||
exit 1
|
||||
fi
|
||||
echo "Digital Ocean Market Place update complete"
|
||||
rm update.json
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue