Skip to content

Commit 037e8ef

Browse files
authored
[chore] Add nightly mirror to Codeberg.org (#392)
* add mirror pipeline => codeberg * remove trigger in mirror step * fix file formatting
1 parent 40be88e commit 037e8ef

File tree

1 file changed

+30
-2
lines changed

1 file changed

+30
-2
lines changed

.drone.yml

+30-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
###
55
### For documentation on drone, see: https://docs.drone.io/
66
### For documentation on drone docker pipelines in particular: https://docs.drone.io/pipeline/docker/overview/
7-
87
kind: pipeline
98
type: docker
109
name: default
@@ -111,8 +110,37 @@ trigger:
111110
- NyaaaWhatsUpDoc/gotosocial
112111
- f0x52/gotosocial
113112

113+
---
114+
kind: pipeline
115+
type: docker
116+
name: cron
117+
118+
trigger:
119+
event:
120+
- cron
121+
cron:
122+
- nightly
123+
124+
clone:
125+
disable: true
126+
127+
steps:
128+
- name: mirror
129+
image: alpine/git
130+
environment:
131+
CODEBERG_TOKEN:
132+
from_secret: gts_codeberg_token
133+
commands:
134+
# configure git credentials
135+
- git config --global user.email "[email protected]"
136+
- git config credential.helper store
137+
- printf "https://gotosocialbot:${CODEBERG_TOKEN}@codeberg.org\n" >> ~/.git-credentials
138+
# mirror and push
139+
- git clone --mirror https://github.com/superseriousbusiness/gotosocial .
140+
- git push --mirror https://codeberg.org/superseriousbusiness/gotosocial
141+
114142
---
115143
kind: signature
116-
hmac: f6372893445074c19e33057cf2cb94ddc9b5c54108094f9bfd40aae7c501f87c
144+
hmac: 56eb9e0f41199d44f2fc76b6d8265b9c4841ec2f5724852e7c116170d823d5a4
117145

118146
...

0 commit comments

Comments
 (0)