feat: add publish composer PHP
Presentation
(Necessarily link to an issue. If it doesn't exist, please create one.)
Closes #25
This MR adds a new php-publish job to the template, allowing the publication of Composer packages to the GitLab Package Registry.
It introduces the following variables:
-
PHP_PUBLISH_ENABLED: Set totrueto enable the job (default:false). -
PHP_PUBLISH_URL: The Composer repository URL (default: GitLab Package Registry).
Checklist
- General:
-
use rules instead of only/except -
optimized cache configuration (wherever applicable)
-
- Publicly usable:
-
untagged runners -
no proxy configuration but support http_proxy/https_proxy/no_proxy -
no custom CA certificate(s) but supports $CUSTOM_CA_CERTSor$DEFAULT_CA_CERTSto declare custom CA certificate(s) -
internet hostnames/urls only
-
- Used Docker images:
-
public images -
official images (when possible) -
latesttag (when possible)
-
- Documented:
-
README.mddocuments the new feature -
kicker.jsondescribes the new feature
-
- Tested & examplified:
-
(url to a project sample successfully using the new feature)
-
Edited by Ugo Mignon