I am setting up a GitLab-ci.yml file and want to add a condition where if the env variable is prod get the release tag id, else get the hash commit id.
Can you please suggest how I can achieve it ?
These are the commands which ill be using to get the commit id or tag id :
git log -1 --format=%h
git describe --tags --abbrev=0