Skip to content
Snippets Groups Projects
Unverified Commit ca832ee8 authored by Pedro Pombeiro's avatar Pedro Pombeiro
Browse files

Use CI_JOB_TOKEN to create releases

parent fe08cf27
No related branches found
No related tags found
No related merge requests found
...@@ -10,8 +10,8 @@ if [[ -z "${tag}" ]]; then ...@@ -10,8 +10,8 @@ if [[ -z "${tag}" ]]; then
exit 0 exit 0
fi fi
if [[ -z "${DEPLOY_TOKEN}" ]]; then if [[ -z "${CI_JOB_TOKEN}" ]]; then
echo -e "\033[0;31m****** Missing DEPLOY_TOKEN, cannot release ******\033[0m" echo -e "\033[0;31m****** Missing CI_JOB_TOKEN, cannot release ******\033[0m"
exit 0 exit 0
fi fi
...@@ -42,7 +42,7 @@ EOS ...@@ -42,7 +42,7 @@ EOS
curl -f \ curl -f \
--header 'Content-Type: application/json' \ --header 'Content-Type: application/json' \
--header "PRIVATE-TOKEN: ${DEPLOY_TOKEN}" \ --header "PRIVATE-TOKEN: ${CI_JOB_TOKEN}" \
--data "${release}" \ --data "${release}" \
--request POST \ --request POST \
"${api}/projects/${projectID}/releases" "${api}/projects/${projectID}/releases"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment