diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b69c683..8ac587c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,6 +1,7 @@ stages: - validate - test + - deploy before_script: - apk add zip graphicsmagick @@ -143,3 +144,12 @@ test:phpunit:7.2: script: - composer install --prefer-dist --no-progress - php -d memory_limit=-1 ./vendor/bin/phpunit --testdox + +deploy:composer:package: + image: alpine:3.15.5 + stage: deploy + script: + - apk add curl + - 'curl --header "Job-Token: $CI_JOB_TOKEN" --data tag=${CI_COMMIT_TAG} "${CI_API_V4_URL}/projects/$CI_PROJECT_ID/packages/composer"' + only: + - tags \ No newline at end of file