mirror of
https://git.dn42.dev/dn42/registry.git
synced 2026-02-13 22:52:18 +08:00
add woodpecker pipeline
This commit is contained in:
parent
6bcd612385
commit
c73ac86d9a
2 changed files with 30 additions and 23 deletions
23
.drone.yml
23
.drone.yml
|
|
@ -1,23 +0,0 @@
|
|||
---
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: pull-checks
|
||||
|
||||
steps:
|
||||
- name: squashbot
|
||||
image: dn42/pipeline
|
||||
environment:
|
||||
SQUASHBOT_TOKEN:
|
||||
from_secret: SQUASHBOT_TOKEN
|
||||
commands:
|
||||
- /scripts/wrapper
|
||||
|
||||
trigger:
|
||||
event:
|
||||
- pull_request
|
||||
|
||||
---
|
||||
kind: signature
|
||||
hmac: a7844c78365f463971354b5650affed18c0ca3ffd05e9c96a7c3390558c84fb9
|
||||
|
||||
...
|
||||
30
.woodpecker/pipeline.yml
Normal file
30
.woodpecker/pipeline.yml
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
---
|
||||
###########################################################################
|
||||
|
||||
when:
|
||||
- event: [ pull_request ]
|
||||
|
||||
clone:
|
||||
git:
|
||||
image: woodpeckerci/plugin-git
|
||||
settings:
|
||||
recursive: false
|
||||
lfs: false
|
||||
partial: false
|
||||
depth: 0
|
||||
branch: 'pr'
|
||||
fetch-target-branch: true
|
||||
target-branch: master
|
||||
|
||||
steps:
|
||||
|
||||
- name: 'SquashBot'
|
||||
image: 'git.dn42/registry/pipeline-docker:latest'
|
||||
environment:
|
||||
SQUASHBOT_TOKEN:
|
||||
from_secret: 'SQUASHBOT_TOKEN'
|
||||
commands:
|
||||
- /scripts/wrapper
|
||||
|
||||
###########################################################################
|
||||
# end of file
|
||||
Loading…
Add table
Add a link
Reference in a new issue