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