You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
	
	
		
			45 lines
		
	
	
		
			960 B
		
	
	
	
		
			YAML
		
	
			
		
		
	
	
			45 lines
		
	
	
		
			960 B
		
	
	
	
		
			YAML
		
	
| kind: pipeline
 | |
| type: docker
 | |
| name: CI Test/Lint Pipeline
 | |
| 
 | |
| steps:
 | |
| - name: Unit Tests and Linters
 | |
|   # Bullseye because drone runner host OS is using older libseccomp2 causing issues
 | |
|   # with thread allocation. See: https://github.com/docker-library/python/issues/835
 | |
|   image: python:3.11-bullseye
 | |
|   commands:
 | |
|    - bash -xc './scripts/run_linters.sh'
 | |
|    - bash -xc './scripts/run_unit_tests.sh'
 | |
|   group: test-lint
 | |
| 
 | |
| trigger:
 | |
|   event:
 | |
|     - pull_request
 | |
|     - push
 | |
| 
 | |
| # Secrets used to pull private images
 | |
| image_pull_secrets:
 | |
|   - dockerconfigjson
 | |
| 
 | |
| ---
 | |
| kind: pipeline
 | |
| type: docker
 | |
| name: Build Production Image
 | |
| steps:
 | |
| - name: Build learn_otel Container Image
 | |
|   image: plugins/docker
 | |
|   settings:
 | |
|     username: automate
 | |
|     password:
 | |
|       from_secret: automate_password
 | |
|     dockerfile: Dockerfile
 | |
|     registry: registry.runcible.io
 | |
|     repo: registry.runcible.io/learn_otel
 | |
|     tags:
 | |
|       - ${DRONE_COMMIT_SHA}
 | |
|   when:
 | |
|     branch:
 | |
|       - master
 | |
|     event:
 | |
|       - push
 |