diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..bc52f76 --- /dev/null +++ b/.drone.yml @@ -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} \ No newline at end of file diff --git a/HanyadikHetVan.cs b/HanyadikHetVan.cs index af4568e..c2a9a02 100644 --- a/HanyadikHetVan.cs +++ b/HanyadikHetVan.cs @@ -7,6 +7,6 @@ namespace 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; } }