Add GitLab Release script

This commit is contained in:
Sumner Evans
2019-10-29 09:47:47 -06:00
parent daa11553f4
commit 5e819fa3b4
2 changed files with 29 additions and 0 deletions

19
cicd/publish-gitlab-release.sh Executable file
View File

@@ -0,0 +1,19 @@
#! /usr/bin/bash
data="
{
\"name\": \"${CI_COMMIT_TAG}\",
\"tag_name\": \"${CI_COMMIT_TAG}\",
\"description\": \"Test release from the GitLab CI/CD\",
\"milestones\": []
}
"
echo $data
cat CHANGELOG
curl \
--header 'Content-Type: application/json' \
--header "PRIVATE-TOKEN: ${CI_JOB_TOKEN}" \
${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/releases