drone config and entity
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				continuous-integration/drone/push Build is passing
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	continuous-integration/drone/push Build is passing
				
			This commit is contained in:
		
							
								
								
									
										23
									
								
								.drone.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										23
									
								
								.drone.yml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,23 @@
 | 
				
			|||||||
 | 
					kind: pipeline
 | 
				
			||||||
 | 
					type: docker
 | 
				
			||||||
 | 
					name: default
 | 
				
			||||||
 | 
					steps:
 | 
				
			||||||
 | 
					- name: code-analysis
 | 
				
			||||||
 | 
					  image: aosapps/drone-sonar-plugin
 | 
				
			||||||
 | 
					  settings:
 | 
				
			||||||
 | 
					    sonar_host:
 | 
				
			||||||
 | 
					      from_secret: SONAR_HOST
 | 
				
			||||||
 | 
					    sonar_token:
 | 
				
			||||||
 | 
					      from_secret: SONAR_CODE
 | 
				
			||||||
 | 
					- name: kaniko
 | 
				
			||||||
 | 
					  image: banzaicloud/drone-kaniko
 | 
				
			||||||
 | 
					  settings:
 | 
				
			||||||
 | 
					    registry: registry.kmlabz.com
 | 
				
			||||||
 | 
					    repo: birbnetes/${DRONE_REPO_NAME}
 | 
				
			||||||
 | 
					    username:
 | 
				
			||||||
 | 
					      from_secret: DOCKER_USERNAME
 | 
				
			||||||
 | 
					    password:
 | 
				
			||||||
 | 
					      from_secret: DOCKER_PASSWORD
 | 
				
			||||||
 | 
					    tags:
 | 
				
			||||||
 | 
					      - latest
 | 
				
			||||||
 | 
					      - ${DRONE_BUILD_NUMBER}
 | 
				
			||||||
@@ -7,6 +7,6 @@ namespace hanyadikhetvan
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
    public class HanyadikHetVan
 | 
					    public class HanyadikHetVan
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        public int HanyadikHet { get { return DateTime.Now.Subtract(DateTime.Parse(Environment.GetEnvironmentVariable("HANYADIKHET_STARTDATE"))).Days / 7; } }
 | 
					        public int HanyadikHet => DateTime.Now.Subtract(DateTime.Parse(Environment.GetEnvironmentVariable("HANYADIKHET_STARTDATE"))).Days / 7;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user