Skip to content

fix: add API version to OpenAPI spec#6

Merged
IKatsuba merged 1 commit intomainfrom
api-version
Dec 31, 2024
Merged

fix: add API version to OpenAPI spec#6
IKatsuba merged 1 commit intomainfrom
api-version

Conversation

@IKatsuba
Copy link
Owner

@IKatsuba IKatsuba commented Dec 31, 2024

This pull request introduces several changes to integrate the SIMULON_VERSION environment variable into the Docker build and application runtime. The most important changes include updating the Dockerfile to accept a build argument for the version, modifying the API to use this version, and ensuring the environment schema includes the version.

Integration of SIMULON_VERSION:

  • .github/workflows/docker-publish.yml: Added build-args to pass the release tag name as SIMULON_VERSION during the Docker build process.
  • Dockerfile: Introduced an ARG for SIMULON_VERSION and set it as an environment variable within the Docker container.
  • apps/api/main.ts: Updated the API documentation version to use the SIMULON_VERSION environment variable.
  • packages/env/mod.ts: Added SIMULON_VERSION to the environment schema with a default value and transformation to strip a leading 'v'.

@IKatsuba IKatsuba merged commit 4f91f9d into main Dec 31, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments