diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..834cdcf --- /dev/null +++ b/.gitattributes @@ -0,0 +1,10 @@ +Tests export-ignore +.gitlab-ci.yml export-ignore + +.gitattributes export-ignore +.gitignore export-ignore + +ecs.php export-ignore +phpstan.neon export-ignore +phpstan-baseline.neon export-ignore +phpunit.xml.dist export-ignore diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e1e39fb..156a8f7 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -145,7 +145,7 @@ test:phpunit:7.2: - composer install --prefer-dist --no-progress - php -d memory_limit=-1 ./vendor/bin/phpunit --testdox -deploy:composer:package: +deploy:composer:package:tag: before_script: [] image: alpine:3.15.5 stage: deploy @@ -153,4 +153,14 @@ deploy:composer:package: - 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 + - tags + +deploy:composer:package:branch: + before_script: [] + image: alpine:3.15.5 + stage: deploy + script: + - apk add curl + - 'curl --header "Job-Token: $CI_JOB_TOKEN" --data branch=${CI_COMMIT_BRANCH} "${CI_API_V4_URL}/projects/$CI_PROJECT_ID/packages/composer"' + only: + - branches