Build satis and publish using gitlab pages. This is based on satis-gitlab with a little enhancement
10K+
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"
For satis-json configurations options see https://composer.github.io/satis/config.
To use a custom template use twig-template option in your satis template. You'll find the example template in vendor/composer/satis/views
options-section are passed as --option-key to the command, so all satis/satis-gilab options are availablearguments-section are passed as argument-key to the command, so all satis/satis-gilab command arguments are availablegit clone https://github.com/ochorocho/gitlab-pages-satis.gitcomposer install./bin/gitlab-pages-satisContent type
Image
Digest
Size
24.1 MB
Last updated
over 7 years ago
docker pull ochorocho/gitlab-pages-satis