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

Fix wrong version string in docker images #2497

Merged
merged 1 commit into from
Mar 14, 2022

Conversation

User123698745
Copy link
Contributor

Closes #2496

This will exclude the .git/HEAD file and any file in the .git/refs/heads directory from the .git docker ignore rule and therefore include these files in the docker image.
The already existing getVersion() in lib/Configuration.php will then be able to build an accurate version string which includes the git hash.

@Bockiii
Copy link
Contributor

Bockiii commented Mar 13, 2022

Looks good. Can you remove the whitelist.txt blacklisting again? Thx.

do not fully ignore git directory when building docker images
".git/HEAD" and ".git/refs/heads/*" are required by "getVersion()" in "lib/Configuration.php" to build the version string
@User123698745
Copy link
Contributor Author

whitelist.txt was already on the list. Somehow a white space change happened at that line, which I did not notice. I removed the white space change

@em92 em92 merged commit a7e7092 into RSS-Bridge:master Mar 14, 2022
@User123698745 User123698745 deleted the docker-version branch March 14, 2022 12:18
Kwbmm pushed a commit to Kwbmm/rss-bridge that referenced this pull request Jun 17, 2022
)

do not fully ignore git directory when building docker images
".git/HEAD" and ".git/refs/heads/*" are required by "getVersion()" in "lib/Configuration.php" to build the version string
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.

Wrong version string in docker images
3 participants