Commit 3cd57f3a authored by Thomas Löffler's avatar Thomas Löffler
Browse files

Add basic gitlab yaml for releasing extension

parent 7f8ba7be
Pipeline #2645 passed with stage
in 1 minute and 13 seconds
stages:
- release
Upload release to TER:
stage: release
image: composer:1
only:
- tags
before_script:
- apk add libxml2-dev php-soap
- docker-php-ext-install soap
- composer global require namelesscoder/typo3-repository-client
script:
- >
if [ -n "$CI_COMMIT_TAG" ] && [ -n "$T3O_USERNAME" ] && [ -n "$T3O_PASSWORD" ]; then
echo -e "Preparing upload of release ${CI_COMMIT_TAG} to TER\n"
# Cleanup before we upload
git reset --hard HEAD && git clean -fx
# Upload
TAG_MESSAGE=`git tag -n10 -l $CI_COMMIT_TAG | sed 's/^[0-9.]*[ ]*//g'`
echo "Uploading release ${CI_COMMIT_TAG} to TER"
.Build/bin/upload . "$T3O_USERNAME" "$T3O_PASSWORD" "$TAG_MESSAGE"
fi;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment