podaboutlist / santa

Discord bot for sending and collecting gifts
https://podaboutli.st/discord
GNU Affero General Public License v3.0
1 stars 3 forks source link

[bot] Setting status message to git commit hash doesn't work in Docker container #49

Closed RalphORama closed 3 years ago

RalphORama commented 3 years ago

Description of the Bug

docker build doesn't include the .git directory, so git rev-parse --short HEAD fails when trying to set the bot's status message. One possible solution is to move Docker builds to Travis, then use docker push so we can use Travis to set default environment variables for the image

Steps to Reproduce the Bug

  1. Launch the bot using the Docker container (ralphorama/santabot)
  2. Watch log output

The Bug Affects