Add deployment to package registry

This commit is contained in:
Dirk Koritnik 2022-08-09 11:03:40 +02:00
parent 5cfbe11167
commit 9814e8dac9

View file

@ -1,6 +1,7 @@
stages: stages:
- validate - validate
- test - test
- deploy
before_script: before_script:
- apk add zip graphicsmagick - apk add zip graphicsmagick
@ -143,3 +144,12 @@ test:phpunit:7.2:
script: script:
- composer install --prefer-dist --no-progress - composer install --prefer-dist --no-progress
- php -d memory_limit=-1 ./vendor/bin/phpunit --testdox - 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