Skip to content

Conversation

@andrewjong
Copy link
Member

This PR implements a git hook that automatically updates the DOCKER_IMAGE_TAG in the .env file with the current git commit hash whenever Docker-related files (Dockerfile or docker-compose.yaml) are modified.

Changes:

  1. Renamed PROJECT_VERSION to DOCKER_IMAGE_TAG in the .env file
  2. Created a pre-commit hook that updates DOCKER_IMAGE_TAG with the git commit hash
  3. Updated all docker-compose.yaml files to use the new variable name
  4. Added a comment to indicate that the value is auto-generated

This approach eliminates version conflicts between parallel branches by ensuring Docker images are tagged with the exact commit they were built from.

@andrewjong andrewjong requested a review from jfkeller April 1, 2025 20:59
@andrewjong
Copy link
Member Author

John approved on Slack

@andrewjong andrewjong merged commit c1200cf into develop Apr 2, 2025
@andrewjong andrewjong deleted the docker-image-tag-from-git-hash branch November 17, 2025 22:38
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.

3 participants