Basic repo setup
This commit is contained in:
commit
3488e6f244
35
.drone.yml
Normal file
35
.drone.yml
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
---
|
||||||
|
kind: secret
|
||||||
|
name: docker_username
|
||||||
|
get:
|
||||||
|
path: odit-registry-builder
|
||||||
|
name: username
|
||||||
|
|
||||||
|
---
|
||||||
|
kind: secret
|
||||||
|
name: docker_password
|
||||||
|
get:
|
||||||
|
path: odit-registry-builder
|
||||||
|
name: password
|
||||||
|
|
||||||
|
---
|
||||||
|
kind: pipeline
|
||||||
|
type: kubernetes
|
||||||
|
name: build:latest
|
||||||
|
steps:
|
||||||
|
- name: docker release
|
||||||
|
image: registry.odit.services/library/drone-kaniko
|
||||||
|
settings:
|
||||||
|
username:
|
||||||
|
from_secret: docker_username
|
||||||
|
password:
|
||||||
|
from_secret: docker_password
|
||||||
|
repo: library/drone-gitea-pr
|
||||||
|
tags:
|
||||||
|
- latest
|
||||||
|
registry: registry.odit.services
|
||||||
|
trigger:
|
||||||
|
branch:
|
||||||
|
- main
|
||||||
|
event:
|
||||||
|
- push
|
7
LICENSE
Normal file
7
LICENSE
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
Copyright ©2023 ODIT.Services <info@odit.services>
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
41
README.md
Normal file
41
README.md
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
<p align="center">
|
||||||
|
<a href="https://odit.services" target="blank"><img src="https://odit.services/img/profile-pic-no_bg.webp" width="200" alt="ODIT Logo" /></a>
|
||||||
|
</p>
|
||||||
|
<h1 align="center">Drone Gitea PR</h1>
|
||||||
|
|
||||||
|
 
|
||||||
|
|
||||||
|
|
||||||
|
Generates gitea pull requests from a source to a target branch.
|
||||||
|
It is also able to merge the pull request after creation (see Settings)
|
||||||
|
|
||||||
|
## Settings 🛠️
|
||||||
|
* `DOMAIN`: Domain name of your gitea server
|
||||||
|
* `APIKEY`: Api token for a gitea user that has the privileges to create (and merge) pull requests in your repo
|
||||||
|
* `TITLE`: Title for the PR - defaults to "<source> -> <target>"
|
||||||
|
* `SOURCE`: Source branch (aka head)
|
||||||
|
* `TARGET`: Target branch (aka base)
|
||||||
|
* `MERGE`: Merge the PR after creation - defaults to false
|
||||||
|
* `DELETE_SOURCE`: Delete source branch after merge - defaults to false
|
||||||
|
|
||||||
|
## Examples
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
kind: pipeline
|
||||||
|
name: default
|
||||||
|
|
||||||
|
steps:
|
||||||
|
steps:
|
||||||
|
- name: release
|
||||||
|
image: registry.odit.services/library/drone-changelogger
|
||||||
|
pull: always
|
||||||
|
settings:
|
||||||
|
DOMAIN: git.odit.services
|
||||||
|
APIKEY:
|
||||||
|
from_secret: gitea_token
|
||||||
|
TITILE: Upmerge
|
||||||
|
SOURCE: dev
|
||||||
|
TARGET: main
|
||||||
|
MERGE: true
|
||||||
|
DELETE_SOURCE: false
|
||||||
|
```
|
9
renovate.json
Normal file
9
renovate.json
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
||||||
|
"extends": [
|
||||||
|
"local>odit/templates//renovate/base"
|
||||||
|
],
|
||||||
|
"baseBranches": [
|
||||||
|
"main"
|
||||||
|
]
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user