update antora config & CI workflow
This commit is contained in:
parent
e77a9e1990
commit
d454588dc5
2 changed files with 31 additions and 3 deletions
29
.gitlab-ci.yml
Normal file
29
.gitlab-ci.yml
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
build:
|
||||
stage: build
|
||||
image:
|
||||
name: antora/antora:latest
|
||||
script:
|
||||
- antora --log-failure-level fatal site.yml
|
||||
artifacts:
|
||||
paths:
|
||||
- public/
|
||||
expire_in: 1 week
|
||||
expose_as: 'docs preview'
|
||||
rules:
|
||||
- if: $CI_PIPELINE_SOURCE == 'merge_request_event'
|
||||
environment:
|
||||
name: preview MR_${CI_MERGE_REQUEST_IID}
|
||||
url: https://${CI_SERVER_HOST}/${CI_PROJECT_PATH}/-/jobs/${CI_JOB_ID}/artifacts/file/public/index.html
|
||||
auto_stop_in: 1 week
|
||||
pages:
|
||||
stage: build
|
||||
image:
|
||||
name: antora/antora:latest
|
||||
script:
|
||||
- antora site.yml
|
||||
artifacts:
|
||||
paths:
|
||||
- public
|
||||
rules:
|
||||
- if: $CI_COMMIT_BRANCH == "main" && $CI_PROJECT_ROOT_NAMESPACE == "fedora"
|
||||
|
||||
5
site.yml
5
site.yml
|
|
@ -5,11 +5,10 @@ content:
|
|||
sources:
|
||||
- url: .
|
||||
branches: HEAD
|
||||
- url: https://pagure.io/fedora-docs/release-docs-home.git
|
||||
branches: master
|
||||
- url: https://gitlab.com/fedora/docs/fedora-linux-documentation/release-docs-home.git
|
||||
ui:
|
||||
bundle:
|
||||
url: https://asamalik.fedorapeople.org/ui-bundle.zip
|
||||
url: https://gitlab.com/fedora/docs/docs-website/ui-bundle/-/jobs/artifacts/HEAD/raw/build/ui-bundle.zip?job=bundle-stable
|
||||
snapshot: true
|
||||
default_layout: with_menu
|
||||
output:
|
||||
|
|
|
|||
Reference in a new issue