Auth in CI
Use this page when installing in CI. You still need Composer credentials for klub.bnomei.com to download the plugin.
Using COMPOSER_AUTH
Set the environment variable in your pipeline and run Composer normally:
export COMPOSER_AUTH='{"http-basic":{"klub.bnomei.com":{"username":"LICENSE_ID","password":"LICENSE_KEY"}}}'
composer install --prefer-dist --no-interaction
Writing auth.json on the fly
If your CI prefers files, write auth.json during the build and remove it afterward.
cat <<'JSON' > auth.json
{
"http-basic": {
"klub.bnomei.com": {
"username": "LICENSE_ID",
"password": "LICENSE_KEY"
}
}
}
JSON
Next: Configuration