Deployment
This page explains how deployment works for docusaurus subpages (like this one itself with project slug /meta/
).
Deployment is triggered via GitLab webhooks when one of the following CI stages are entered:
upload:preview
-> deployment topreview.docs.fitko.dev/<PROJECT_SLUG>/<MERGE_REQUEST_ID>/
stop:preview
-> preview deployment is deleted againupload:production
-> deployment todocs.fitko.de/<PROJECT_SLUG>/
When configuring a new docusaurus instance for deployment, your Gitlab repo needs to be configured properly and your project needs to be registered in the deployment webserver. Please contact FITKO for registering any new projects.
Configure your Gitlab project
- Use
.gitlab-ci.yml
from the template repo as your CI template. - The deployment assumes there is a 'build/' folder in the
build
jobs artifact. Make sure not to modify the.gitlab-ci.yml
template here. - Configure a webhook in your project or group:
- Go to
Settings
->Webhooks
- Use
https://docs.fitko.de/hooks/deploy
as the webhook url - Ask for a webhook secret and use it as the secret token
- Check
Job events
as trigger - Click
Add webhook
- Go to
Register your repository at docs.fitko.de (webserver)
To register your project, we only need the following info:
- Your gitlab project id
- Your prefered
<PROJECT_SLUG>
Behind the scenes
We use adnanh/webhook
for running webhooks.