CI/CD Deployment
Automatic Deployment with CI/CD
For security reasons, Raznar uses a CI/CD pipeline (GitHub Actions / GitLab CI) to trigger deployments.
Every request is verified using the header:
X-Webhook-Token
The token is stored as a secret in CI/CD, not hardcoded in the repository.
What You Need to Prepare
From the Raznar panel, prepare the following configuration:
- Webhook URL
- Webhook Token
You can find both here.
Store each of them as an environment variable:
RAZNAR_WEBHOOK_URLRAZNAR_WEBHOOK_TOKEN
CI/CD Configuration Example
GitHub Actions
Create the file .github/workflows/deploy.yml
name: Deploy to Raznar
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Trigger Raznar Deploy
run: |
curl -X POST "${{ secrets.RAZNAR_WEBHOOK_URL }}" \
-H "X-Webhook-Token: ${{ secrets.RAZNAR_WEBHOOK_TOKEN }}"
GitLab CI
Add this to .gitlab-ci.yml
deploy:
stage: deploy
only:
- main
script:
- |
curl -X POST "$RAZNAR_WEBHOOK_URL" \
-H "X-Webhook-Token: $RAZNAR_WEBHOOK_TOKEN"
Important Notes
- Use CI/CD, not a direct webhook from GitHub/GitLab
- The token must be sent via
X-Webhook-Token - Store the token only in Secrets / Variables