This commit is contained in:
		
							
								
								
									
										17
									
								
								.drone.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								.drone.yml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,17 @@ | |||||||
|  | --- | ||||||
|  | kind: pipeline | ||||||
|  | type: kubernetes | ||||||
|  | name: default | ||||||
|  |  | ||||||
|  | steps: | ||||||
|  | - name: docker | ||||||
|  |   image: plugins/docker | ||||||
|  |   settings: | ||||||
|  |     repo: harbor.k-space.ee/${DRONE_REPO} | ||||||
|  |     registry: harbor.k-space.ee | ||||||
|  |     mtu: 1300 | ||||||
|  |     squash: true | ||||||
|  |     username: | ||||||
|  |       from_secret: docker_username | ||||||
|  |     password: | ||||||
|  |       from_secret: docker_password | ||||||
| @@ -1,4 +1,6 @@ | |||||||
| FROM python | FROM python:alpine | ||||||
|  | RUN apk add --no-cache gcc make musl-dev linux-headers | ||||||
| RUN pip install motor sanic sanic-prometheus sanic_wtf | RUN pip install motor sanic sanic-prometheus sanic_wtf | ||||||
|  | RUN apk del gcc make musl-dev linux-headers | ||||||
| ADD lease.py / | ADD lease.py / | ||||||
| CMD /lease.py | CMD /lease.py | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user