Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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
IAM-marco pushed a commit to IAM-marco/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