Commit 1aa69322 authored by Thibaud-Vdb's avatar Thibaud-Vdb
Browse files

Merge branch '669-job_release-replace-the-variable-gitlab_api_url' into 'latest'

Draft: Resolve "[job_release] - Replace the variable GITLAB_API_URL"

Closes #669

See merge request r2devops/hub!424
parents 6c9aeb76 4d963f42
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
# Changelog
All notable changes to this job will be documented in this file.

## [1.1.0] - 2022-12-20
* Replace default value of `GITLAB_API_URL` by `${CI_SERVER_HOST}`

## [1.0.0] - 2022-11-23
* Allow to fetch jobs from nested directories
* Use snippet maintained by R2Devops instead of external resource
+3 −1
Original line number Diff line number Diff line
@@ -46,13 +46,15 @@ A `CHANGELOG.md` is required to create the releases
* Initial version
```

!!! question "Can i use a self-hosted GitLab?"
   This job automatically utilize the host specified by the `CI_SERVER_HOST` GitLab predefined CI/CD variable inside the `GITLAB_API_URL` variable
## Variables

| Name | Description | Default |
| ---- | ----------- | ------- |
| `JOBS_DIRECTORY` | The root directory containing the job folders | `.` |
| `IMAGE_TAG` | The default tag for the docker image [alpine/httpie](https://hub.docker.com/r/alpine/httpie) | `3.2.1` |
| `GITLAB_API_URL` | The domain of GitLab instance. ⚠️ It should be changed if you using a self-hosted version | `gitlab.com` |
| `GITLAB_API_URL` | The host name of the GitLab instance | `${CI_SERVER_HOST}` |
| `CHANGELOG_FILE` | The name of changelog files (case insensitive) | `CHANGELOG.md` |

## Author
+1 −1
Original line number Diff line number Diff line
@@ -11,7 +11,7 @@ job_release:
  variables:
    JOBS_DIRECTORY: "."
    IMAGE_TAG: "3.2.1"
    GITLAB_API_URL: "gitlab.com"
    GITLAB_API_URL: "${CI_SERVER_HOST}"
    CHANGELOG_FILE: "CHANGELOG.md"
  before_script:
    - apk update && apk add --no-cache bash