This question already has an answer here:
- Application auto build versioning 6 answers
I'm building Golang project on gitlab CI and I'd like to pass $CI_COMMIT_TAG
value to compiler. With g++
it would be something like g++ -DCI_COMMIT_TAG=$CI_COMMIT_TAG ...
. Is there anything simillar for go build
command?
</div>