fix: API_VERSION description
This commit is contained in:
parent
944ae2bfbb
commit
8eb2d2d587
3 changed files with 195 additions and 2 deletions
|
|
@ -101,7 +101,7 @@ npm run start
|
|||
|
||||
The GraphQL API will be available at `http://localhost:4000/`
|
||||
|
||||
### Available Queries and Mutations
|
||||
#### Available Queries and Mutations after start
|
||||
|
||||
#### Queries
|
||||
- `apiVersion` - Returns the API build version
|
||||
|
|
@ -571,4 +571,6 @@ For support, please open an issue in the GitHub repository.
|
|||
|
||||
## 🔄 API Version
|
||||
|
||||
Current API version: ${API_VERSION:-"Not set"}
|
||||
Current API version: ${API_VERSION:-"Not set"}
|
||||
|
||||
The API version is automatically set during the Docker build process based on the Git tag or commit hash. During CI/CD deployment (as defined in `.forgejo/workflows/deploy-docker.yaml`), the API_VERSION is determined using `git describe --tags --always`, which creates a version identifier based on the most recent Git tag and the number of commits since that tag. This version information is then embedded into the Docker image as a build argument and becomes accessible through the API_VERSION environment variable at runtime.
|
||||
Loading…
Add table
Add a link
Reference in a new issue