mirror of
				https://github.com/yeasy/docker_practice.git
				synced 2025-10-30 18:02:08 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			20 lines
		
	
	
		
			312 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			312 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| kind: pipeline
 | |
| type: docker
 | |
| name: build
 | |
| steps:
 | |
| - name: build
 | |
|   image: golang:alpine
 | |
|   pull: if-not-exists # always never
 | |
|   environment:
 | |
|     KEY: VALUE
 | |
|   commands:
 | |
|     - echo $KEY
 | |
|     - pwd
 | |
|     - ls
 | |
|     - CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o app .
 | |
|     - ./app
 | |
| 
 | |
| trigger:
 | |
|   branch:
 | |
|   - master
 |