This commit is contained in:
Luc Didry 2019-08-04 20:01:11 +02:00
parent 6145ce1c33
commit bffff54c85
No known key found for this signature in database
GPG Key ID: EA868E12D0257E3C
1 changed files with 5 additions and 12 deletions

View File

@ -1,6 +1,7 @@
image: hatsoftwares/lufi-test-ci:buster image: hatsoftwares/lufi-test-ci:buster
stages: stages:
- publish_changelog - publish_changelog
- pouet_it
- carton - carton
- carton_bdd - carton_bdd
- tests - tests
@ -74,20 +75,12 @@ variables:
- name: rroemhild/test-openldap - name: rroemhild/test-openldap
alias: rroemhild-test-openldap alias: rroemhild-test-openldap
### Publish tag changelog ### Publish tag changelog and create a toot
## ##
# #
publish_changelog: include:
image: hatsoftwares/curl-jq:latest - 'https://framagit.org/fiat-tux/gitlabci-snippets/raw/master/publish_changelog.yml'
stage: publish_changelog - 'https://framagit.org/fiat-tux/gitlabci-snippets/raw/master/pouet-it-from-ci.yml'
script:
- export PROJECT_API_URL="https://framagit.org/api/v4/projects/${CI_PROJECT_ID}"
- export DESCRIPTION_URL="${PROJECT_API_URL}/repository/tags/${CI_COMMIT_TAG}/release"
- 'export HEADER="Private-Token: ${GITLAB_API_TOKEN}"'
- sed -n '/^'$CI_COMMIT_TAG'[[:space:]]/,/^[^\t]/p' CHANGELOG | sed -e 's/^[^\t].*//' -e 's/\t//g' | sed '/^[[:space:]]*$/d' > /tmp/text
- if [[ ! -z $GITLAB_API_TOKEN ]]; then curl -s --request POST --data-urlencode "description@/tmp/text" --header "${HEADER}" "${DESCRIPTION_URL}"; fi
only:
- tags
### Podcheck ### Podcheck
## ##