Compare commits
4 Commits
8214650eef
...
9de6ddc3d7
Author | SHA1 | Date |
---|---|---|
|
9de6ddc3d7 | |
|
8d51143e18 | |
|
17c29b246e | |
|
8df42379e2 |
|
@ -16,7 +16,7 @@ build-job:
|
||||||
script:
|
script:
|
||||||
# 拷贝到GOPATH
|
# 拷贝到GOPATH
|
||||||
- echo '拷贝到GOPATH'
|
- echo '拷贝到GOPATH'
|
||||||
- cp -rfvp ./* $GOPATH/src/$ProjectPath
|
- cp -rfp ./* $GOPATH/src/$ProjectPath
|
||||||
# 进入项目目录
|
# 进入项目目录
|
||||||
- cd $GOPATH/src/$ProjectPath
|
- cd $GOPATH/src/$ProjectPath
|
||||||
# 编译
|
# 编译
|
||||||
|
@ -30,6 +30,8 @@ build-job:
|
||||||
go build -v
|
go build -v
|
||||||
cd ..
|
cd ..
|
||||||
done < shell/programs.txt
|
done < shell/programs.txt
|
||||||
|
only:
|
||||||
|
- develop
|
||||||
|
|
||||||
deploy-job:
|
deploy-job:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
|
@ -65,4 +67,6 @@ deploy-job:
|
||||||
- git add .
|
- git add .
|
||||||
- git commit -m "auto commit pipelineId\:$CI_PIPELINE_ID"
|
- git commit -m "auto commit pipelineId\:$CI_PIPELINE_ID"
|
||||||
- git push origin develop
|
- git push origin develop
|
||||||
|
only:
|
||||||
|
- develop
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue