mirror of
https://github.com/werkraum-media/events.git
synced 2024-11-21 21:16:11 +01:00
Expose branches, beside tags, to composer
This commit is contained in:
parent
2626613aa7
commit
10df1eddc1
2 changed files with 22 additions and 2 deletions
10
.gitattributes
vendored
Normal file
10
.gitattributes
vendored
Normal 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
|
|
@ -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
|
||||
- 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
|
||||
|
|
Loading…
Reference in a new issue