-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.drone.yaml
71 lines (64 loc) · 1.19 KB
/
.drone.yaml
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
69
70
---
kind: pipeline
type: kubernetes
name: default
steps:
- name: docker
image: plugins/docker
settings:
registry: quay.io
username:
from_secret: quay_user
password:
from_secret: quay_token
repo: quay.io/mountain-workshop/riley
tags:
- ${DRONE_TAG}
- ${DRONE_COMMIT_SHA}
when:
ref:
- refs/tags/*
- name: gitea_release
image: plugins/gitea-release
settings:
base_url: https://git.iratepublik.com
api_key:
from_secret: gitea_token
title: ${DRONE_TAG}
note: ${DRONE_TAG}
when:
ref:
- refs/tags/*
- name: helm-lint
image: quay.io/sudermanjr/utilities:2.0
commands:
- helm lint charts/riley --strict
when:
branch:
exclude:
- master
ref:
exclude:
- refs/tags/**
- name: go-test
image: golang:1.16
commands:
- make test
when:
branch:
exclude:
- master
ref:
exclude:
- refs/tags/**
- name: helm-deploy
image: quay.io/sudermanjr/utilities:2.0
commands:
- helm upgrade --install riley charts/riley --namespace dhc --create-namespace --set image.tag=${DRONE_COMMIT_SHA}
when:
ref:
- refs/tags/*
trigger:
event:
- push
- tag