include gitea changes in readme

This commit is contained in:
Brad Rydzewski 2019-09-02 23:08:43 -07:00
commit e272027814
5 changed files with 35 additions and 44 deletions

39
.github/readme.md vendored
View file

@ -7,28 +7,35 @@ Drone is a Continuous Delivery system built on container technology. Drone uses
Sample Pipeline Configuration: Sample Pipeline Configuration:
```yaml ```yaml
pipeline: name: default
backend:
image: golang
commands:
- go get
- go build
- go test
frontend: kind: pipeline
image: node:6 type: docker
commands:
- npm install
- npm test
publish: steps:
image: plugins/docker - name: backend
image: golang
commands:
- go get
- go build
- go test
- name: frontend
image: node:6
commands:
- npm install
- npm test
- name: publish
image: plugins/docker
settings:
repo: octocat/hello-world repo: octocat/hello-world
tags: [ 1, 1.1, latest ] tags: [ 1, 1.1, latest ]
registry: index.docker.io registry: index.docker.io
notify: - name: notify
image: plugins/slack image: plugins/slack
settings:
channel: developers channel: developers
username: drone username: drone
``` ```

View file

@ -9,9 +9,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- support for configuration conversion plugins (e.g. convert from starlark) - support for configuration conversion plugins (e.g. convert from starlark)
- moved native jsonnet to a conversion plugin - moved native jsonnet to a conversion plugin
### Removed
- Support for basic auth as an option for Gitea, by [@techknowlogick](https://giteahub.com/techknowlogick). [#2721](https://github.com/drone/drone/issues/2721)
## [1.3.1] - 2019-08-26 ## [1.3.1] - 2019-08-26
### Added ### Added
- support for the GitHub deployment status API, by [@bradrydzewski](https://github.com/bradrydzewski). - support for the GitHub deployment status API, by [@bradrydzewski](https://github.com/bradrydzewski).
## [1.3.0] - 2019-08-20 ## [1.3.0] - 2019-08-20

View file

@ -117,16 +117,6 @@ func provideGiteaClient(config config.Config) *scm.Client {
if config.Gitea.Debug { if config.Gitea.Debug {
client.DumpResponse = httputil.DumpResponse client.DumpResponse = httputil.DumpResponse
} }
if config.Gitea.ClientID == "" {
client.Client = &http.Client{
Transport: &oauth2.Transport{
Scheme: oauth2.SchemeToken,
Source: oauth2.ContextTokenSource(),
Base: defaultTransport(config.Gitea.SkipVerify),
},
}
return client
}
client.Client = &http.Client{ client.Client = &http.Client{
Transport: &oauth2.Transport{ Transport: &oauth2.Transport{
Scheme: oauth2.SchemeBearer, Scheme: oauth2.SchemeBearer,

View file

@ -92,22 +92,14 @@ func provideGiteaLogin(config config.Config) login.Middleware {
if config.Gitea.Server == "" { if config.Gitea.Server == "" {
return nil return nil
} }
if config.Gitea.ClientID != "" { return &gitea.Config {
return &gitea.Config { ClientID: config.Gitea.ClientID,
ClientID: config.Gitea.ClientID, ClientSecret: config.Gitea.ClientSecret,
ClientSecret: config.Gitea.ClientSecret, Server: config.Gitea.Server,
Server: config.Gitea.Server, Client: defaultClient(config.Gitea.SkipVerify),
Client: defaultClient(config.Gitea.SkipVerify), Logger: logrus.StandardLogger(),
Logger: logrus.StandardLogger(), RedirectURL: config.Server.Addr + "/login",
RedirectURL: config.Server.Addr + "/login", Scope: config.Gitea.Scope,
Scope: config.Gitea.Scope,
}
}
return &gogs.Config{
Label: "drone",
Login: "/login/form",
Server: config.Gitea.Server,
Client: defaultClient(config.Gitea.SkipVerify),
} }
} }

View file

@ -23,7 +23,7 @@ import (
// License types. // License types.
const ( const (
LicenseFoss = "foss" LicenseFoss = "foss"
LicensePeronal = "personal" LicensePersonal = "personal"
LicenseStandard = "standard" LicenseStandard = "standard"
LicenseTrial = "trial" LicenseTrial = "trial"
) )