Commit f2a68868 authored by Thomas Löffler's avatar Thomas Löffler

Fix gitlab CI file

parent 0ef9fbb4
Pipeline #2322 failed with stage
in 31 seconds
cache: cache:
key: "$CI_BUILD_NAME/$CI_BUILD_REF_NAME" key: "$CI_BUILD_NAME-$CI_BUILD_REF_NAME"
untracked: true untracked: true
paths: paths:
- cache/ - cache/
...@@ -13,14 +13,13 @@ stages: ...@@ -13,14 +13,13 @@ stages:
# The variables T3O_USERNAME and T3O_PASSWORD should be set in GitLab # The variables T3O_USERNAME and T3O_PASSWORD should be set in GitLab
ter-upload: ter-upload:
stage: upload stage: upload
image: composer:1
only: only:
- tags - tags
before_script: before_script:
- curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
- export COMPOSER_CACHE_DIR=/cache/composer - export COMPOSER_CACHE_DIR=/cache/composer
script: script:
- composer install - composer global require namelesscoder/typo3-repository-client
- composer require namelesscoder/typo3-repository-client
- export TYPO3_PATH_WEB="$PWD/.Build/Web" - export TYPO3_PATH_WEB="$PWD/.Build/Web"
- > - >
if [ -n "$CI_BUILD_TAG" ] && [ -n "$T3O_USERNAME" ] && [ -n "$T3O_PASSWORD" ]; then if [ -n "$CI_BUILD_TAG" ] && [ -n "$T3O_USERNAME" ] && [ -n "$T3O_PASSWORD" ]; then
...@@ -30,5 +29,5 @@ ter-upload: ...@@ -30,5 +29,5 @@ ter-upload:
# Upload # Upload
TAG_MESSAGE=`git tag -n10 -l $CI_BUILD_TAG | sed 's/^[0-9.]*[ ]*//g'` TAG_MESSAGE=`git tag -n10 -l $CI_BUILD_TAG | sed 's/^[0-9.]*[ ]*//g'`
echo "Uploading release ${CI_BUILD_TAG} to TER" echo "Uploading release ${CI_BUILD_TAG} to TER"
.Build/bin/upload . "$T3O_USERNAME" "$T3O_PASSWORD" "$TAG_MESSAGE" /tmp/vendor/bin/upload . "$T3O_USERNAME" "$T3O_PASSWORD" "$TAG_MESSAGE"
fi; fi;
\ No newline at end of file
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