mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-10-31 01:32:25 -05:00 
			
		
		
		
	[chore] Add nightly mirror to Codeberg.org (#392)
* add mirror pipeline => codeberg * remove trigger in mirror step * fix file formatting
This commit is contained in:
		
					parent
					
						
							
								40be88ec60
							
						
					
				
			
			
				commit
				
					
						037e8efd5f
					
				
			
		
					 1 changed files with 30 additions and 2 deletions
				
			
		
							
								
								
									
										32
									
								
								.drone.yml
									
										
									
									
									
								
							
							
						
						
									
										32
									
								
								.drone.yml
									
										
									
									
									
								
							|  | @ -4,7 +4,6 @@ | ||||||
| ### | ### | ||||||
| ### For documentation on drone, see: https://docs.drone.io/ | ### For documentation on drone, see: https://docs.drone.io/ | ||||||
| ### For documentation on drone docker pipelines in particular: https://docs.drone.io/pipeline/docker/overview/ | ### For documentation on drone docker pipelines in particular: https://docs.drone.io/pipeline/docker/overview/ | ||||||
| 
 |  | ||||||
| kind: pipeline | kind: pipeline | ||||||
| type: docker | type: docker | ||||||
| name: default | name: default | ||||||
|  | @ -111,8 +110,37 @@ trigger: | ||||||
|     - NyaaaWhatsUpDoc/gotosocial |     - NyaaaWhatsUpDoc/gotosocial | ||||||
|     - f0x52/gotosocial |     - f0x52/gotosocial | ||||||
| 
 | 
 | ||||||
|  | --- | ||||||
|  | kind: pipeline | ||||||
|  | type: docker | ||||||
|  | name: cron | ||||||
|  | 
 | ||||||
|  | trigger: | ||||||
|  |   event: | ||||||
|  |     - cron | ||||||
|  |   cron: | ||||||
|  |     - nightly | ||||||
|  | 
 | ||||||
|  | clone: | ||||||
|  |   disable: true | ||||||
|  | 
 | ||||||
|  | steps: | ||||||
|  |   - name: mirror | ||||||
|  |     image: alpine/git | ||||||
|  |     environment: | ||||||
|  |       CODEBERG_TOKEN: | ||||||
|  |         from_secret: gts_codeberg_token | ||||||
|  |     commands: | ||||||
|  |       # configure git credentials | ||||||
|  |       - git config --global user.email "admin@gotosocial.org" | ||||||
|  |       - git config credential.helper store | ||||||
|  |       - printf "https://gotosocialbot:${CODEBERG_TOKEN}@codeberg.org\n" >> ~/.git-credentials | ||||||
|  |       # mirror and push | ||||||
|  |       - git clone --mirror https://github.com/superseriousbusiness/gotosocial . | ||||||
|  |       - git push --mirror https://codeberg.org/superseriousbusiness/gotosocial | ||||||
|  | 
 | ||||||
| --- | --- | ||||||
| kind: signature | kind: signature | ||||||
| hmac: f6372893445074c19e33057cf2cb94ddc9b5c54108094f9bfd40aae7c501f87c | hmac: 56eb9e0f41199d44f2fc76b6d8265b9c4841ec2f5724852e7c116170d823d5a4 | ||||||
| 
 | 
 | ||||||
| ... | ... | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue