Read repo name from ci var
This commit is contained in:
parent
c1f43d98b3
commit
39d1286800
@ -15,13 +15,9 @@ if [[ "${PLUGIN_GITEA_DOMAIN:-}" == "true" ]]; then
|
|||||||
echo "No api key provided";
|
echo "No api key provided";
|
||||||
exit 1;
|
exit 1;
|
||||||
fi
|
fi
|
||||||
if [[ -n "${PLUGIN_REPO:-}"]]; then
|
|
||||||
echo "No repo provided";
|
|
||||||
exit 2;
|
|
||||||
fi
|
|
||||||
|
|
||||||
curl --request POST \
|
curl --request POST \
|
||||||
--url "https://$PLUGIN_GITEA_DOMAIN/api/v1/repos/$PLUGIN_REPO/releases" \
|
--url "https://$PLUGIN_GITEA_DOMAIN/api/v1/repos/$CI_REPO_NAME/releases" \
|
||||||
--header "Content-Type: application/json" \
|
--header "Content-Type: application/json" \
|
||||||
--header "Authorization: token $PLUGIN_GITEA_APIKEY" \
|
--header "Authorization: token $PLUGIN_GITEA_APIKEY" \
|
||||||
--data "{
|
--data "{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user