More detail on variable setting process
This commit is contained in:
@ -62,10 +62,12 @@ We will use Gitea (git.medlab.host) as the external repository and GitLab for CI
|
|||||||
- Enable push mirroring
|
- Enable push mirroring
|
||||||
|
|
||||||
3. **Set Required Variables on GitLab**
|
3. **Set Required Variables on GitLab**
|
||||||
|
- Get an access token from the Surfer server by going to `/_admin` and getting the "Access Tokens" dialog from the three-dot menu
|
||||||
- From your GitLab repo go to: `Settings > CI/CD > Variables`
|
- From your GitLab repo go to: `Settings > CI/CD > Variables`
|
||||||
- Add these variables:
|
- Add a variable:
|
||||||
- `SURFER_TOKEN`: Your Surfer access token
|
- `SURFER_TOKEN` (key): Your Surfer access token (value)
|
||||||
- Mark as "Masked and hidden"
|
- Mark as "Masked and hidden"
|
||||||
|
- Uncheck "Protect variable"
|
||||||
- In the `.gitlab-ci.yml` file, set the following variable:
|
- In the `.gitlab-ci.yml` file, set the following variable:
|
||||||
- `SURFER_SERVER`: Your Surfer server URL
|
- `SURFER_SERVER`: Your Surfer server URL
|
||||||
- Example: "https://www.example.com/"
|
- Example: "https://www.example.com/"
|
||||||
|
Reference in New Issue
Block a user