karasamistmere/composer-gitlab-dotenv-token

v1.0.3 2022-02-16 09:38 UTC

This package is not auto-updated.

Last update: 2024-09-27 07:23:10 UTC


README

一个简单的composer插件,可以从环境变量中加载私有Gitlab部署令牌用于composer仓库。

使用方法

composer require karsamistmere/composer-gitlab-dotenv-token

在你的环境变量中添加

GITLAB_TOKEN={"gitlab.com": "privatetoken"}

或者

GITLAB_TOKEN={"gitlab.com": {"username": "gitlabuser", "token": "privatetoken"}}

或者

GITLAB_TOKEN_HOST=gitlab.com
GITLAB_TOKEN_USERNAME=gitlabuser
GITLAB_TOKEN_TOKEN=privatetoken