Drone
This commit is contained in:
		
							
								
								
									
										27
									
								
								.drone.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										27
									
								
								.drone.yaml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,27 @@
 | 
			
		||||
kind: pipeline
 | 
			
		||||
type: docker
 | 
			
		||||
name: Build Multi-Arch Gitea-CR
 | 
			
		||||
 | 
			
		||||
platform:
 | 
			
		||||
  os: linux
 | 
			
		||||
  arch: amd64
 | 
			
		||||
 | 
			
		||||
trigger:
 | 
			
		||||
  branche:
 | 
			
		||||
  - master
 | 
			
		||||
 | 
			
		||||
steps:
 | 
			
		||||
# Build binary for each architecture
 | 
			
		||||
- name: Test Binaries
 | 
			
		||||
  image: golang:alpine
 | 
			
		||||
  volumes:
 | 
			
		||||
  - name: binaries
 | 
			
		||||
    path: /binaries
 | 
			
		||||
  - name: go-cache
 | 
			
		||||
    path: /go
 | 
			
		||||
  environment:
 | 
			
		||||
    GOOS: linux
 | 
			
		||||
    GOARCH: amd64
 | 
			
		||||
  commands:
 | 
			
		||||
  - go test -v ./pkg/
 | 
			
		||||
  - go build -o /binaries/CalculateTest_amd64
 | 
			
		||||
		Reference in New Issue
	
	Block a user