This commit is contained in:
		
						commit
						473615082c
					
				
					 2 changed files with 35 additions and 0 deletions
				
			
		
							
								
								
									
										32
									
								
								.woodpecker.yml
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										32
									
								
								.woodpecker.yml
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1,32 @@
 | 
				
			||||||
 | 
					# Build and publish Docker images for multible architectures.
 | 
				
			||||||
 | 
					# 
 | 
				
			||||||
 | 
					# Pushing an image to forgejo 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/jmbit/docker-hugo
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					steps:
 | 
				
			||||||
 | 
					  publish:
 | 
				
			||||||
 | 
					    image: woodpeckerci/plugin-docker-buildx
 | 
				
			||||||
 | 
					    settings:
 | 
				
			||||||
 | 
					      dockerfile: *file
 | 
				
			||||||
 | 
					      platforms: linux/arm64/v8,linux/amd64
 | 
				
			||||||
 | 
					      repo: *repo
 | 
				
			||||||
 | 
					      registry: git.jmbit.de
 | 
				
			||||||
 | 
					      tags: 
 | 
				
			||||||
 | 
					        - latest
 | 
				
			||||||
 | 
					        - ${CI_COMMIT_SHA}
 | 
				
			||||||
 | 
					      username: jmbitci
 | 
				
			||||||
 | 
					      password:
 | 
				
			||||||
 | 
					        from_secret: dockerhub_token
 | 
				
			||||||
 | 
					    when:
 | 
				
			||||||
 | 
					      event: push
 | 
				
			||||||
 | 
					
 | 
				
			||||||
							
								
								
									
										3
									
								
								Dockerfile
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								Dockerfile
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1,3 @@
 | 
				
			||||||
 | 
					FROM opensuse/tumbleweed
 | 
				
			||||||
 | 
					RUN zypper in -yn hugo hugo-bash-completion
 | 
				
			||||||
 | 
					CMD ["hugo"]
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue