diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..43b2009 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,48 @@ +--- +kind: pipeline +type: kubernetes +name: default + +steps: +- name: build + image: mcr.microsoft.com/dotnet/sdk:6.0 + commands: + - dotnet build + #- dotnet test --logger "console;verbosity=detailed" +- name: build & push docker image (main branch) + image: plugins/docker + when: + branch: + - main + event: + exclude: + - tag + settings: + username: + from_secret: docker_username + password: + from_secret: docker_password + repo: lostpetinitiative/cassandra-rest-api + target: final + context: CardIndexRestAPI + auto_tag: true + force_tag: true + build_args: + - VERSION=0.0.0.${DRONE_BUILD_NUMBER} +- name: build & push docker image (TAG) + image: plugins/docker + when: + event: + - tag + settings: + username: + from_secret: docker_username + password: + from_secret: docker_password + repo: lostpetinitiative/cassandra-rest-api + target: final + context: CardIndexRestAPI + auto_tag: true + force_tag: true + build_args: + - VERSION=${DRONE_TAG}.${DRONE_BUILD_NUMBER} diff --git a/CardIndexRestAPI.sln b/CardIndexRestAPI.sln index df73883..5a226d0 100644 --- a/CardIndexRestAPI.sln +++ b/CardIndexRestAPI.sln @@ -3,7 +3,14 @@ Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio Version 17 VisualStudioVersion = 17.3.32804.467 MinimumVisualStudioVersion = 10.0.40219.1 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CardIndexRestAPI", "CardIndexRestAPI\CardIndexRestAPI.csproj", "{AAE6F6F1-7B82-47BC-81EC-A581CBD72B6D}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CardIndexRestAPI", "CardIndexRestAPI\CardIndexRestAPI.csproj", "{AAE6F6F1-7B82-47BC-81EC-A581CBD72B6D}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{63EE97BA-0D1E-4436-8302-C5821A1F64D8}" + ProjectSection(SolutionItems) = preProject + .drone.yml = .drone.yml + LICENSE = LICENSE + Readme.md = Readme.md + EndProjectSection EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..2586f6c --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2022 LostPetInitiative + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/Readme.md b/Readme.md new file mode 100644 index 0000000..11515b2 --- /dev/null +++ b/Readme.md @@ -0,0 +1,5 @@ +# REST API service that provides access to the animal card (advertisment) index for fast search + +[![Build Status](https://drone.k8s.grechka.family/api/badges/LostPetInitiative/CardIndexRestAPI/status.svg)](https://drone.k8s.grechka.family/LostPetInitiative/CardIndexRestAPI) + +Built releases are automatically published to [Docker Hub](https://hub.docker.com/repository/docker/lostpetinitiative/search-api-gateway) \ No newline at end of file