flowerinthenight / golang-monorepo

An example of a golang-based monorepo.
MIT License
381 stars 36 forks source link

Add support for Gitlab CI #4

Open liemle3893 opened 4 years ago

liemle3893 commented 4 years ago
  1. Add support for Gitlab CI (see .gitlab.ci.yml)
  2. Cleanup build.sh.
    • Use realpath instead of readlink -e. realpath work pretty the same on OSX, Ubuntu, Alpine
    • Resolve: The very first commit may cause error.
    • CI_COMMIT_BEFORE_SHA, CI_COMMIT_SHA will be put inside pipeline and might be re-calculate if needed.