ochorocho / gitlab-pages-satis
该包已被废弃且不再维护。未建议替代包。
v1.0.0
2018-11-09 12:59 UTC
Requires
- mbo/satis-gitlab: dev-master
This package is auto-updated.
Last update: 2020-10-30 01:51:11 UTC
README
bin/gitlab-pages-satis
指定配置
bin/gitlab-pages-satis /path/to/config.yml
使用环境变量
export GITLAB_SATIS_CONFIG=" arguments: gitlab-url: 'https://gitlab.example.org' gitlab-token: 'TOKEN' options: homepage: 'https://satis.example.org' output: 'satis.json' ignore: '(^knallimall\/typo3-desktop)' build-dir: './public' "
示例配置
arguments: gitlab-url: 'https://gitlab.example.org' gitlab-token: 'TOKEN' options: homepage: 'https://satis.example.org' output: 'satis.json' # Make sure string is escaped correctly ignore: '(^knallimall\/typo3-desktop)' template: 'satis-template.example.json' use-file-to-include: '.satisinclude' build-dir: './public' # .htaccess and .htpasswd file only generated if set basic-auth: auth-name: "Satis Repository" auth-file: "/path/to/.htpasswd" # Absolute path required username: "admin" password: "password"
有关 satis-json 配置选项,请参阅 https://composer.github.io/satis/config。要使用自定义模板,请在 satis 模板中使用 twig-template
选项。示例模板位于 vendor/composer/satis/views
功能
- 配置
- 默认: ./config.yml
- env: GITLAB_SATIS_CONFIG
- 设置配置 gitlab-pages-satis /path/to/config-file.yml
- 将
options
-部分的全部值作为--option-key
传递给命令,因此所有 satis/satis-gilab 选项都可用 - 将
arguments
-部分的全部值作为argument-key
传递给命令,因此所有 satis/satis-gilab 命令参数都可用
开发
git clone https://github.com/ochorocho/gitlab-pages-satis.git
composer install
- 创建配置文件,请参阅 config.example.yml
- 运行它
./bin/gitlab-pages-satis