Loading .gitlab-ci.yml +4 −9 Original line number Original line Diff line number Diff line Loading @@ -39,20 +39,15 @@ build: publish: publish: stage: publish stage: publish variables: COMMIT_TAG : $CI_COMMIT_TAG only: only: - tags # Run only on tags - tags except: except: - branches # Do not run this job on a branch - branches # Do not run this job when a tag is created manually script: script: - echo $CI_COMMIT_SHA - echo $CI_COMMIT_TAG - echo $CI_COMMIT_MESSAGE - | - | curl --fail --output "/dev/null" --silent --show-error --write-out "HTTP response: ${http_code}\n\n" \ curl --fail --output "/dev/null" --silent --show-error --write-out "HTTP response: ${http_code}\n\n" \ --data "{\"ref\": \"$CI_COMMIT_SHA\",\"tag_name\": \"$CI_COMMIT_TAG\", \"name\": \"MicroG\", \"description\": \"$CI_COMMIT_MESSAGE\"}" \ --data "{\"ref\": \"$CI_COMMIT_SHA\",\"tag_name\": \"$CI_COMMIT_TAG\", \"name\": \"$CI_COMMIT_TAG\", \"description\": \"No release notes\"}" \ --header "Content-Type: application/json" \ --header "Content-Type: application/json" \ --header "PRIVATE-TOKEN: SdnrNQPUfEb9No6wg6tY" \ --header "PRIVATE-TOKEN: SdnrNQPUfEb9No6wg6tY" \ --request POST \ --request POST \ "https://gitlab.e.foundation/api/v4/projects/${CI_PROJECT_ID}/releases" "https://gitlab.e.foundation/api/v4/projects/149/releases" Loading
.gitlab-ci.yml +4 −9 Original line number Original line Diff line number Diff line Loading @@ -39,20 +39,15 @@ build: publish: publish: stage: publish stage: publish variables: COMMIT_TAG : $CI_COMMIT_TAG only: only: - tags # Run only on tags - tags except: except: - branches # Do not run this job on a branch - branches # Do not run this job when a tag is created manually script: script: - echo $CI_COMMIT_SHA - echo $CI_COMMIT_TAG - echo $CI_COMMIT_MESSAGE - | - | curl --fail --output "/dev/null" --silent --show-error --write-out "HTTP response: ${http_code}\n\n" \ curl --fail --output "/dev/null" --silent --show-error --write-out "HTTP response: ${http_code}\n\n" \ --data "{\"ref\": \"$CI_COMMIT_SHA\",\"tag_name\": \"$CI_COMMIT_TAG\", \"name\": \"MicroG\", \"description\": \"$CI_COMMIT_MESSAGE\"}" \ --data "{\"ref\": \"$CI_COMMIT_SHA\",\"tag_name\": \"$CI_COMMIT_TAG\", \"name\": \"$CI_COMMIT_TAG\", \"description\": \"No release notes\"}" \ --header "Content-Type: application/json" \ --header "Content-Type: application/json" \ --header "PRIVATE-TOKEN: SdnrNQPUfEb9No6wg6tY" \ --header "PRIVATE-TOKEN: SdnrNQPUfEb9No6wg6tY" \ --request POST \ --request POST \ "https://gitlab.e.foundation/api/v4/projects/${CI_PROJECT_ID}/releases" "https://gitlab.e.foundation/api/v4/projects/149/releases"