-
Notifications
You must be signed in to change notification settings - Fork 0
/
.drone.yml
48 lines (47 loc) · 1.05 KB
/
.drone.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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/search-api-gateway
target: final
dockerfile: CardIndexRestAPI/Dockerfile
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/search-api-gateway
target: final
dockerfile: CardIndexRestAPI/Dockerfile
auto_tag: true
force_tag: true
build_args:
- VERSION=${DRONE_TAG}.${DRONE_BUILD_NUMBER}