summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author杨威 <[email protected]>2019-05-22 19:02:08 +0800
committer杨威 <[email protected]>2019-05-22 19:02:08 +0800
commit5c946a8093341af4e05b803e39d61b4aea74f3c1 (patch)
treeb26a3c5f285513c9d787646de75b9db2e52cf1cb
parent67149010db22147b409b58805f9de4a0081b4d4d (diff)
Update .gitlab-ci.yml
-rw-r--r--.gitlab-ci.yml9
1 files changed, 0 insertions, 9 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 5cda3e7..e196eba 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -28,12 +28,6 @@ build:
paths:
- ./build/*.rpm
-.echo_del_release_script: &echo_del_release_script |
- echo -e "curl --request DELETE --header \"PRIVATE-TOKEN: LWsss-XPxWuP-Esv-dF7\" $CI_API_V4_URL/projects/$CI_PROJECT_ID/releases/$CI_COMMIT_TAG"
-
-.echo_post_release_script: &echo_post_release_script |
- echo -e "curl --header 'Content-Type: application/json' --header \"PRIVATE-TOKEN: LWsss-XPxWuP-Esv-dF7\" --data '{ \"name\": \"$CI_COMMIT_TAG.zip\", \"tag_name\": \"$CI_COMMIT_TAG\", \"description\": \"$CI_COMMIT_DESCRIPTION $CI_COMMIT_MESSAGE $CI_RUNNER_DESCRIPTION\", \"assets\": { \"links\": [{ \"name\": \"$CI_PROJECT_NAME_$CI_COMMIT_TAG.zip\", \"url\": \"$CI_PROJECT_URL/-/jobs/artifacts/$CI_COMMIT_TAG/download?job=build\" }] } }' --request POST $CI_API_V4_URL/projects/$CI_PROJECT_ID/releases/"""
-
.del_release_script: &del_release_script |
echo -e "curl --request DELETE --header \"PRIVATE-TOKEN: LWsss-XPxWuP-Esv-dF7\" $CI_API_V4_URL/projects/$CI_PROJECT_ID/releases/$CI_COMMIT_TAG" | /bin/bash
@@ -47,8 +41,5 @@ release:
only:
- tags
script:
- - echo $GITLAB_CI $CI_RUNNER_ID $CI_RUNNER_DESCRIPTION $CI_PIPELINE_ID $CI_JOB_ID $CI_JOB_TOKEN
- - *echo_del_release_script
- *del_release_script
- - *echo_post_release_script
- *post_release_script \ No newline at end of file