embed_git_hash.sh 300 B

1234567
  1. #!/bin/bash
  2. # This script changes config.json file to include last Git hash (for client-side display)
  3. # This should be run only on production pipelines
  4. # config.json source file should have a "GIT_HASH" label properly defined
  5. sed -i "s/GIT_HASH/`git rev-parse --short HEAD`/g" ./public/config.json