Skip to content

Commit

Permalink
drone build definition (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
dgrechka authored Aug 19, 2022
1 parent 43082f5 commit ce618a6
Show file tree
Hide file tree
Showing 4 changed files with 82 additions and 1 deletion.
48 changes: 48 additions & 0 deletions .drone.yml
Original file line number Diff line number Diff line change
@@ -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}
9 changes: 8 additions & 1 deletion CardIndexRestAPI.sln
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -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.
5 changes: 5 additions & 0 deletions Readme.md
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit ce618a6

Please sign in to comment.