introduction to gitea with drone
TRANSCRIPT
![Page 1: Introduction to Gitea with Drone](https://reader033.vdocuments.site/reader033/viewer/2022052117/5a6502497f8b9aa2548b5b81/html5/thumbnails/1.jpg)
A painless self-hosted Git service: Gitea
Bo-Yi Wu2017.08.05
![Page 2: Introduction to Gitea with Drone](https://reader033.vdocuments.site/reader033/viewer/2022052117/5a6502497f8b9aa2548b5b81/html5/thumbnails/2.jpg)
About me
Full Stack & DevOps engineer at Mediatek@appleboy at GitHub, Twitter and SlideShare
https://blog.wu-boy.com
![Page 3: Introduction to Gitea with Drone](https://reader033.vdocuments.site/reader033/viewer/2022052117/5a6502497f8b9aa2548b5b81/html5/thumbnails/3.jpg)
Thanks
![Page 4: Introduction to Gitea with Drone](https://reader033.vdocuments.site/reader033/viewer/2022052117/5a6502497f8b9aa2548b5b81/html5/thumbnails/4.jpg)
Agenda
Git Hosting Services
What is Gitea?
Why we choose Gitea?
How to install Gitea?
Integrate CI/CD Service
How to contribute to Gitea
![Page 5: Introduction to Gitea with Drone](https://reader033.vdocuments.site/reader033/viewer/2022052117/5a6502497f8b9aa2548b5b81/html5/thumbnails/5.jpg)
Agenda
Git Hosting Services
What is Gitea?
Why we choose Gitea?
How to install Gitea?
Integrate CI/CD Service
How to contribute to Gitea
![Page 6: Introduction to Gitea with Drone](https://reader033.vdocuments.site/reader033/viewer/2022052117/5a6502497f8b9aa2548b5b81/html5/thumbnails/6.jpg)
Public Git Hosting Services
Bitbucket GitHub Gitlab
![Page 7: Introduction to Gitea with Drone](https://reader033.vdocuments.site/reader033/viewer/2022052117/5a6502497f8b9aa2548b5b81/html5/thumbnails/7.jpg)
GitHosting
Opensource
Self Host FreePrivateRepo
UI/UX
GitHub No No No ★★★
Bitbucket No Yes (Hard) Yes ★
Gitlab Yes Yes (Hard) Yes ★
Gitea Yes Yes (Easy) Yes ★★★
Public Git hosting sites
![Page 8: Introduction to Gitea with Drone](https://reader033.vdocuments.site/reader033/viewer/2022052117/5a6502497f8b9aa2548b5b81/html5/thumbnails/8.jpg)
Agenda
Git Hosting Services
What is Gitea?
Why we choose Gitea?
How to install Gitea?
Integrate CI/CD Service
How to contribute to Gitea
![Page 9: Introduction to Gitea with Drone](https://reader033.vdocuments.site/reader033/viewer/2022052117/5a6502497f8b9aa2548b5b81/html5/thumbnails/9.jpg)
What is Gitea?The initial development have been done on Gogs
https://github.com/go-gitea/gitea
![Page 10: Introduction to Gitea with Drone](https://reader033.vdocuments.site/reader033/viewer/2022052117/5a6502497f8b9aa2548b5b81/html5/thumbnails/10.jpg)
Purpose
Easiest
Fastest
Painless
![Page 11: Introduction to Gitea with Drone](https://reader033.vdocuments.site/reader033/viewer/2022052117/5a6502497f8b9aa2548b5b81/html5/thumbnails/11.jpg)
Gitea hosted Gitea Comment on commit and PR (#124)
Squash merge
Complete Protected branch (#32 #339 )
Complete API support (#64)
OAuth provider (#27)
API Documents (#194)
Complete notifications system (#145)
Complete Webhook support (#132 (PR #908) #895 #1002 )
Better CI Integration (#996 (PR #1332))
Approval systemhttps://github.com/go-gitea/gitea/issues/1029
![Page 12: Introduction to Gitea with Drone](https://reader033.vdocuments.site/reader033/viewer/2022052117/5a6502497f8b9aa2548b5b81/html5/thumbnails/12.jpg)
Agenda
Git Hosting Services
What is Gitea?
Why we choose Gitea?
How to install Gitea?
Integrate CI/CD Service
How to contribute to Gitea
![Page 14: Introduction to Gitea with Drone](https://reader033.vdocuments.site/reader033/viewer/2022052117/5a6502497f8b9aa2548b5b81/html5/thumbnails/14.jpg)
Easy install than GitlabGitlab: https://goo.gl/YP3DF9Gitea: https://goo.gl/GuCuQZ
![Page 15: Introduction to Gitea with Drone](https://reader033.vdocuments.site/reader033/viewer/2022052117/5a6502497f8b9aa2548b5b81/html5/thumbnails/15.jpg)
Low memory and low cost
![Page 16: Introduction to Gitea with Drone](https://reader033.vdocuments.site/reader033/viewer/2022052117/5a6502497f8b9aa2548b5b81/html5/thumbnails/16.jpg)
Gitea is written in Golang
![Page 17: Introduction to Gitea with Drone](https://reader033.vdocuments.site/reader033/viewer/2022052117/5a6502497f8b9aa2548b5b81/html5/thumbnails/17.jpg)
Single BinaryYou don’t need to install any dependency package on your server
![Page 18: Introduction to Gitea with Drone](https://reader033.vdocuments.site/reader033/viewer/2022052117/5a6502497f8b9aa2548b5b81/html5/thumbnails/18.jpg)
Cross Platform
![Page 19: Introduction to Gitea with Drone](https://reader033.vdocuments.site/reader033/viewer/2022052117/5a6502497f8b9aa2548b5b81/html5/thumbnails/19.jpg)
ARM Platform
![Page 20: Introduction to Gitea with Drone](https://reader033.vdocuments.site/reader033/viewer/2022052117/5a6502497f8b9aa2548b5b81/html5/thumbnails/20.jpg)
Agenda
Git Hosting Services
What is Gitea?
Why we choose Gitea?
How to install Gitea?
Integrate CI/CD Service
How to contribute to Gitea
![Page 21: Introduction to Gitea with Drone](https://reader033.vdocuments.site/reader033/viewer/2022052117/5a6502497f8b9aa2548b5b81/html5/thumbnails/21.jpg)
Installation
Docker
Binary
Package
Source
![Page 22: Introduction to Gitea with Drone](https://reader033.vdocuments.site/reader033/viewer/2022052117/5a6502497f8b9aa2548b5b81/html5/thumbnails/22.jpg)
Installation
Docker
Binary
Package
Source
![Page 25: Introduction to Gitea with Drone](https://reader033.vdocuments.site/reader033/viewer/2022052117/5a6502497f8b9aa2548b5b81/html5/thumbnails/25.jpg)
Run the Gitea Service
gitea web
![Page 26: Introduction to Gitea with Drone](https://reader033.vdocuments.site/reader033/viewer/2022052117/5a6502497f8b9aa2548b5b81/html5/thumbnails/26.jpg)
First Install
![Page 27: Introduction to Gitea with Drone](https://reader033.vdocuments.site/reader033/viewer/2022052117/5a6502497f8b9aa2548b5b81/html5/thumbnails/27.jpg)
Don’t Run Gitea as root user
![Page 28: Introduction to Gitea with Drone](https://reader033.vdocuments.site/reader033/viewer/2022052117/5a6502497f8b9aa2548b5b81/html5/thumbnails/28.jpg)
Create git User
useradd –m git
![Page 29: Introduction to Gitea with Drone](https://reader033.vdocuments.site/reader033/viewer/2022052117/5a6502497f8b9aa2548b5b81/html5/thumbnails/29.jpg)
SSH Protocol
![Page 30: Introduction to Gitea with Drone](https://reader033.vdocuments.site/reader033/viewer/2022052117/5a6502497f8b9aa2548b5b81/html5/thumbnails/30.jpg)
Missing https?
![Page 31: Introduction to Gitea with Drone](https://reader033.vdocuments.site/reader033/viewer/2022052117/5a6502497f8b9aa2548b5b81/html5/thumbnails/31.jpg)
You don’t need to care about expire time of certificate file.
![Page 32: Introduction to Gitea with Drone](https://reader033.vdocuments.site/reader033/viewer/2022052117/5a6502497f8b9aa2548b5b81/html5/thumbnails/32.jpg)
example.com {proxy / localhost:3000
}
https://github.com/caddyserver/examples/tree/master/gitea
![Page 33: Introduction to Gitea with Drone](https://reader033.vdocuments.site/reader033/viewer/2022052117/5a6502497f8b9aa2548b5b81/html5/thumbnails/33.jpg)
Easy install in 5 minute
![Page 34: Introduction to Gitea with Drone](https://reader033.vdocuments.site/reader033/viewer/2022052117/5a6502497f8b9aa2548b5b81/html5/thumbnails/34.jpg)
Agenda
Git Hosting Services
What is Gitea?
Why we choose Gitea?
How to install Gitea?
Integrate CI/CD Service
How to contribute to Gitea
![Page 35: Introduction to Gitea with Drone](https://reader033.vdocuments.site/reader033/viewer/2022052117/5a6502497f8b9aa2548b5b81/html5/thumbnails/35.jpg)
Develop
PullRequest
CodeReview
Testing
Deploy
![Page 36: Introduction to Gitea with Drone](https://reader033.vdocuments.site/reader033/viewer/2022052117/5a6502497f8b9aa2548b5b81/html5/thumbnails/36.jpg)
Gitea Drone
![Page 37: Introduction to Gitea with Drone](https://reader033.vdocuments.site/reader033/viewer/2022052117/5a6502497f8b9aa2548b5b81/html5/thumbnails/37.jpg)
Drone is a Continuous Delivery system built on container technology.
What is Drone?
![Page 38: Introduction to Gitea with Drone](https://reader033.vdocuments.site/reader033/viewer/2022052117/5a6502497f8b9aa2548b5b81/html5/thumbnails/38.jpg)
Server
agent
agent
agentDatabase
System Structure
![Page 39: Introduction to Gitea with Drone](https://reader033.vdocuments.site/reader033/viewer/2022052117/5a6502497f8b9aa2548b5b81/html5/thumbnails/39.jpg)
Drone Server
![Page 40: Introduction to Gitea with Drone](https://reader033.vdocuments.site/reader033/viewer/2022052117/5a6502497f8b9aa2548b5b81/html5/thumbnails/40.jpg)
Drone Agent
![Page 42: Introduction to Gitea with Drone](https://reader033.vdocuments.site/reader033/viewer/2022052117/5a6502497f8b9aa2548b5b81/html5/thumbnails/42.jpg)
Easy install in 5 minute
![Page 43: Introduction to Gitea with Drone](https://reader033.vdocuments.site/reader033/viewer/2022052117/5a6502497f8b9aa2548b5b81/html5/thumbnails/43.jpg)
Agenda
Git Hosting Services
What is Gitea?
Why we choose Gitea?
How to install Gitea?
Integrate CI/CD Service
How to contribute to Gitea
![Page 45: Introduction to Gitea with Drone](https://reader033.vdocuments.site/reader033/viewer/2022052117/5a6502497f8b9aa2548b5b81/html5/thumbnails/45.jpg)
Contribution Guide
Bug reports
Discuss your design
Testing before sending your pull request
Code review
![Page 46: Introduction to Gitea with Drone](https://reader033.vdocuments.site/reader033/viewer/2022052117/5a6502497f8b9aa2548b5b81/html5/thumbnails/46.jpg)
Join usbecome a maintainer
contributed at least 4 accepted PRs.
![Page 48: Introduction to Gitea with Drone](https://reader033.vdocuments.site/reader033/viewer/2022052117/5a6502497f8b9aa2548b5b81/html5/thumbnails/48.jpg)
Thank youAny problems?