added Woodpecker CI
This commit is contained in:
		
							parent
							
								
									f1cdbe3c43
								
							
						
					
					
						commit
						a51e45d990
					
				
					 1 changed files with 44 additions and 0 deletions
				
			
		
							
								
								
									
										44
									
								
								.woodpecker.yml
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										44
									
								
								.woodpecker.yml
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,44 @@ | |||
| # Build and publish Docker images for multible architectures. | ||||
| #  | ||||
| # Pushing an image to codeberg as container registry, | ||||
| # package owner will be the repo owner. | ||||
| # | ||||
| # this config also shows usage of yaml aliases and | ||||
| # was taken from https://codeberg.org/6543/docker-images/src/commit/37e29c227717c1c07d2776cddcf14725bf952875/.woodpecker/hello.yml | ||||
| 
 | ||||
| when: | ||||
|   branch: main | ||||
| 
 | ||||
| variables: | ||||
|   - &file Dockerfile | ||||
|   - &repo git.jmbit.de/${CI_REPO_OWNER}/${CI_REPO_NAME} | ||||
| 
 | ||||
| steps: | ||||
|   test: | ||||
|     image: node | ||||
|     commands: | ||||
|       - npm install | ||||
|       - npm run vite check | ||||
|     when: | ||||
|       event: [ pull-request, push] | ||||
| 
 | ||||
|   build: | ||||
|     image: node | ||||
|     commands: | ||||
|       - npm install | ||||
|       - npm run vite build | ||||
| 
 | ||||
|   publish: | ||||
|     image: woodpeckerci/plugin-docker-buildx | ||||
|     settings: | ||||
|       dockerfile: *file | ||||
|       platforms: linux/amd64 | ||||
|       repo: *repo | ||||
|       registry: git.jmbit.de | ||||
|       tags: latest | ||||
|       username: ${CI_REPO_OWNER} | ||||
|       password: | ||||
|         from_secret: forgejo_token | ||||
|     when: | ||||
|       event: push | ||||
| 
 | ||||
		Loading…
	
	Add table
		
		Reference in a new issue