From 9814e8dac94f191b9c48e78bf78bf171a011140a Mon Sep 17 00:00:00 2001 From: Dirk Koritnik Date: Tue, 9 Aug 2022 11:03:40 +0200 Subject: [PATCH] Add deployment to package registry --- .gitlab-ci.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) 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