Skip to content

fix: set cli version from tag build #64

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 26, 2025

Conversation

InfiniteTabs
Copy link
Member

This pull request introduces dynamic versioning support, updating GitHub Actions workflows with to set the build-version for the --version flag.

Versioning and Build System Updates:

  • Added a build.rs file to dynamically set the APP_VERSION environment variable based on the VERSION environment variable or the package version from Cargo.toml.
  • Updated Cargo.toml to include a build = "build.rs" directive for the custom build script.
  • Modified the Dockerfile to accept a VERSION argument and set it as an environment variable during the build process.

GitHub Actions Workflow Updates:

  • Added a VERSION environment variable to the docker-cli.yml workflow for consistent versioning.
  • Updated the actions to use a specific commit reference.

Code Refactoring:

  • Updated the CLI's main.rs to use the dynamically set APP_VERSION for the application's version, replacing the hardcoded version string.
  • Rearranged the initialization flow in the main function to ensure logging and project setup occur before handling subcommands.

@InfiniteTabs InfiniteTabs added the enhancement New feature or request label Apr 24, 2025
@InfiniteTabs InfiniteTabs merged commit 7f6c951 into main Apr 26, 2025
11 checks passed
@InfiniteTabs InfiniteTabs deleted the fix/set-cli-version-from-tag-build branch April 26, 2025 10:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant