Skip to content
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

#328 | Redundant .version file removed #338

Merged
merged 7 commits into from
Mar 11, 2021

Conversation

szymon-owczarzak
Copy link
Contributor

Description

.version file containing version number was redundant to gradle.properties file.
The backend will now use an environment variable COGBOARD_VERSION which is a part of compose files.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • Automated functional tests have been added or modified to cover my changes (if applicable)
  • I have updated the documentation accordingly.

I hereby agree to the terms of the Cogboard Contributor License Agreement.

@szymon-owczarzak szymon-owczarzak added the bug Something isn't working label Mar 4, 2021
@szymon-owczarzak szymon-owczarzak self-assigned this Mar 4, 2021
@szymon-owczarzak szymon-owczarzak linked an issue Mar 4, 2021 that may be closed by this pull request
Comment on lines +21 to +22
environment:
- COGBOARD_VERSION=${COGBOARD_VERSION}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Cogboard version is now provided by docker as a system environment variable.

Comment on lines -160 to -167
register("createVersionFile") {
File(mountDir, ".version").writeText("""
{
"version": "$version"
}
""".trimIndent())
mustRunAfter("copyConfigs")
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no need for that anymore...

@szymon-owczarzak szymon-owczarzak merged commit 5b2e50c into master Mar 11, 2021
@szymon-owczarzak szymon-owczarzak deleted the defect/328-redundant-version-information branch March 11, 2021 09:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Redundant .version file
2 participants