-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Version not set in Docker container? #591
Comments
hello @luckman212 , thanks for reporting this bug the problem is that the build command on docker file does not work properly, with |
Is there any workaround you could suggest? What about just hardcoding the current version in a |
You can use watchtower to achieve the same without having to write a script :) |
Ok I'll look into that, thanks |
I believe the issue is that ".git" is in .dockerignore. When
I don't believe removing .git from the .dockerignore file is the correct solution for the repo though because then the container will be larger. |
the final image is based on scratch, we can remove .git from the .dockerignore without having a bigger image. the .git folder will be copied only in the build stage of the image |
Hi, and 🙏 thank you for transfer.sh !
I am running it in Docker, and wanted to make a simple update notifier when new releases are tagged. So I wanted a way to return the current running version from a script.
Looking at the source, it seems that there is a
version
cli argument that should output the running versiontransfer.sh/cmd/cmd.go
Line 317 in 29d93c6
but when I tried it, it's empty:
Am I doing something wrong? Is there another way to retrieve the current version?
The text was updated successfully, but these errors were encountered: