Updated to new vieter & multi-arch setup
	
		
			
	
		
	
	
		
			
				
	
				ci/woodpecker/push/woodpecker Pipeline was successful
				
					Details
				
			
		
	
				
					
				
			
				
	
				ci/woodpecker/push/woodpecker Pipeline was successful
				
					Details
				
			
		
	
							parent
							
								
									2055ca2d9b
								
							
						
					
					
						commit
						39850bd500
					
				| 
						 | 
				
			
			@ -1,15 +1,20 @@
 | 
			
		|||
matrix:
 | 
			
		||||
  PLATFORM:
 | 
			
		||||
    - linux/amd64
 | 
			
		||||
    - linux/arm64
 | 
			
		||||
 | 
			
		||||
branches: main
 | 
			
		||||
platform: linux/amd64
 | 
			
		||||
platform: ${PLATFORM}
 | 
			
		||||
 | 
			
		||||
when:
 | 
			
		||||
  event: push
 | 
			
		||||
 | 
			
		||||
pipeline:
 | 
			
		||||
  build:
 | 
			
		||||
    image: 'archlinux:latest'
 | 
			
		||||
    image: 'menci/archlinuxarm:base-devel'
 | 
			
		||||
    commands:
 | 
			
		||||
      # Update packages
 | 
			
		||||
      - pacman -Syu --needed --noconfirm base-devel
 | 
			
		||||
      - pacman -Syu --noconfirm
 | 
			
		||||
      # Create non-root user to perform build & switch to their home
 | 
			
		||||
      - groupadd -g 1000 builder
 | 
			
		||||
      - useradd -mg builder builder
 | 
			
		||||
| 
						 | 
				
			
			@ -20,9 +25,9 @@ pipeline:
 | 
			
		|||
      - MAKEFLAGS="-j$(nproc)" makepkg -s --noconfirm --needed
 | 
			
		||||
 | 
			
		||||
  publish:
 | 
			
		||||
    image: 'archlinux:latest'
 | 
			
		||||
    image: 'curlimages/curl'
 | 
			
		||||
    commands:
 | 
			
		||||
      # Publish the package
 | 
			
		||||
      - 'curl -s -XPOST -H "X-API-KEY: $API_KEY" -T "$(ls *.pkg*)" https://arch.r8r.be/publish'
 | 
			
		||||
      - 'curl -s -XPOST -H "X-API-KEY: $API_KEY" -T "$(ls *.pkg*)" https://arch.r8r.be/vieter/publish'
 | 
			
		||||
    secrets:
 | 
			
		||||
      - api_key
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue