GITLAB

Hermes / api-game

Sign in
  • Sign in
  • Project
  • Files
  • Commits
  • Network
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
  • api-game_qianyi
  • sh
  • prod
  • build.sh
  • 3f4646e0   build📦️:脚本 Browse Code »
    王家文
    2024-04-23 11:04:25 +0800  
build.sh 280 Bytes
Edit Raw Blame History
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
# !/bin/bash


export GOPATH="/code/go:/code/apigame"

codedir=/code/apigame/src
cd ${codedir}
if [ $? -ne 0 ];then
   echo "cd ${codedir} error"
   exit 3
fi
go build
if [ $? -ne 0 ]; then
   echo "go build $codedir error"
   exit 3
fi

echo "go build $codedir is ok...."
exit 0