Expose branches, beside tags, to composer

This commit is contained in:
Daniel Siepmann 2022-11-22 08:41:17 +00:00
parent 2626613aa7
commit 10df1eddc1
2 changed files with 22 additions and 2 deletions

10
.gitattributes vendored Normal file
View file

@ -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

View file

@ -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
@ -154,3 +154,13 @@ deploy:composer:package:
- 'curl --header "Job-Token: $CI_JOB_TOKEN" --data tag=${CI_COMMIT_TAG} "${CI_API_V4_URL}/projects/$CI_PROJECT_ID/packages/composer"'
only:
- 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