aboutsummaryrefslogtreecommitdiffstats
path: root/.drone.yml
diff options
context:
space:
mode:
authora1012112796 <1012112796@qq.com>2021-01-23 10:53:13 +0800
committerGitHub <noreply@github.com>2021-01-23 03:53:13 +0100
commit6764e8f7b8d53e377d50766f051dc77fb5cb9f5d (patch)
tree2f82e4910d76aae49824fa99664154f497b2ec93 /.drone.yml
parent271a011ba1b545c838eea450982c43dabcfecf71 (diff)
downloadgitea-6764e8f7b8d53e377d50766f051dc77fb5cb9f5d.tar.gz
gitea-6764e8f7b8d53e377d50766f051dc77fb5cb9f5d.zip
CI: Update license & gitignore by cron (#14419)
do generate-license & generate-gitignore by cron close #12684 Signed-off-by: a1012112796 <1012112796@qq.com>
Diffstat (limited to '.drone.yml')
-rw-r--r--.drone.yml39
1 files changed, 39 insertions, 0 deletions
diff --git a/.drone.yml b/.drone.yml
index 0531fb4a58..9edfae72a8 100644
--- a/.drone.yml
+++ b/.drone.yml
@@ -435,6 +435,45 @@ steps:
---
kind: pipeline
+name: update_gitignore_and_licenses
+
+platform:
+ os: linux
+ arch: amd64
+
+workspace:
+ base: /go
+ path: src/code.gitea.io/gitea
+
+trigger:
+ branch:
+ - master
+ event:
+ - cron
+ cron:
+ - update_gitignore_and_licenses
+
+steps:
+ - name: download
+ image: golang:1.15
+ commands:
+ - timeout -s ABRT 40m make generate-license generate-gitignore
+
+ - name: push
+ pull: always
+ image: appleboy/drone-git-push
+ settings:
+ author_email: "teabot@gitea.io"
+ author_name: GiteaBot
+ commit: true
+ commit_message: "[skip ci] Updated licenses and gitignores "
+ remote: "git@github.com:go-gitea/gitea.git"
+ environment:
+ GIT_PUSH_SSH_KEY:
+ from_secret: git_push_ssh_key
+
+---
+kind: pipeline
name: release-latest
platform: