docker-compose up -d
http://localhost:3000
```[README_GITEA.md](README_GITEA.md)
<image src="images/1.png"/>
### 新建git仓库并提交
```bash
echo "# deploy" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin ssh://git@192.168.3.193:10022/D/demo.git
git push -u origin main
http://localhost:8088
# 步骤请自行搜索
# 对应的是服务器部署的registry.cn-shenzhen.aliyuncs.com/semithin/demo
version: "3"
services:
demo:
image: registry.cn-shenzhen.aliyuncs.com/semithin/demo
container_name: demo
environment:
TZ: Asia/Shanghai
ports:
- 8090:8080
restart: always
├─docker-compose.yml gogs、drone-server、drone-runner
├─Dockerfile dockerfile打包文件
├─Dockerfile.libc6 dockerfile父类镜像(可选)
├─.drone.yml drone流水线配置文件
├─.notify.tpl 通知模版
├─main.go gin示例
curl localhost:8090/ping