-
Notifications
You must be signed in to change notification settings - Fork 1
/
.drone.yml
68 lines (67 loc) · 1.68 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
kind: pipeline
#type: kubernetes
name: default
steps:
- name: bake-development
image: plugins/docker
settings:
username:
from_secret: docker_user
password:
from_secret: docker_pass
repo: registry.nestorrente.com/v2/erdiagram/erdiagram-playground
registry: registry.nestorrente.com/v2
build_args: "BUILD_MODE=development"
tags:
- 1.0.0.${CI_BUILD_NUMBER}-SNAPSHOT
when:
branch:
- develop
- name: bake-production
image: plugins/docker
settings:
username:
from_secret: docker_user
password:
from_secret: docker_pass
repo: registry.nestorrente.com/v2/erdiagram/erdiagram-playground
registry: registry.nestorrente.com/v2
tags:
- latest
- 1.0.0.${CI_BUILD_NUMBER}
when:
branch:
- main
- release/*
- name: deploy-development
image: rubasace/drone-helm-k8s
environment:
K8S_CERT_AUTHORITY_DATA:
from_secret: K8S_CERT_AUTHORITY_DATA
K8S_SERVER:
from_secret: K8S_SERVER
K8S_USER:
from_secret: K8S_USER
K8S_PASSWORD:
from_secret: K8S_PASSWORD
NAMESPACE: development
IMAGE_TAG: 1.0.0.${CI_BUILD_NUMBER}-SNAPSHOT
when:
branch:
- develop
- name: deploy-production
image: rubasace/drone-helm-k8s
environment:
K8S_CERT_AUTHORITY_DATA:
from_secret: K8S_CERT_AUTHORITY_DATA
K8S_SERVER:
from_secret: K8S_SERVER
K8S_USER:
from_secret: K8S_USER
K8S_PASSWORD:
from_secret: K8S_PASSWORD
NAMESPACE: production
IMAGE_TAG: 1.0.0.${CI_BUILD_NUMBER}
when:
branch:
- main