You've already forked drone-runner-charts
Compare commits
23 Commits
Author | SHA1 | Date | |
---|---|---|---|
43e5e1135e
|
|||
2eaa818ab9
|
|||
c1f608b086
|
|||
db7d69e2aa | |||
04194e5a18 | |||
444e0b5934 | |||
d3fe125661 | |||
d8f500a92a | |||
f578d8bec0
|
|||
54de055eb3 | |||
ef7d40283e | |||
29375b7fdb | |||
eb1e5fdcc1 | |||
bda3b8053d
|
|||
e3155c9223 | |||
ea2ca22e7c
|
|||
cfd5890a1c | |||
1c94c9de06
|
|||
8d67cc291f | |||
3dcd0742a3
|
|||
f6e9e6bce7 | |||
c2188e6838 | |||
e41ee3cd47
|
103
.drone.yml
103
.drone.yml
@ -11,7 +11,7 @@ steps:
|
|||||||
- name: helm lint
|
- name: helm lint
|
||||||
commands:
|
commands:
|
||||||
- helm lint
|
- helm lint
|
||||||
image: docker.io/volkerraschek/helm:3.8.1
|
image: docker.io/volkerraschek/helm:3.10.2
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
cpu: 50
|
cpu: 50
|
||||||
@ -20,27 +20,38 @@ steps:
|
|||||||
- name: markdown lint
|
- name: markdown lint
|
||||||
commands:
|
commands:
|
||||||
- markdownlint *.md
|
- markdownlint *.md
|
||||||
image: docker.io/volkerraschek/markdownlint:0.31.1
|
image: docker.io/volkerraschek/markdownlint:0.32.2
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
cpu: 50
|
cpu: 50
|
||||||
memory: 50M
|
memory: 50M
|
||||||
|
|
||||||
- name: email-notification
|
- name: helm template
|
||||||
environment:
|
commands:
|
||||||
PLUGIN_HOST:
|
- helm template .
|
||||||
from_secret: smtp_host
|
image: docker.io/volkerraschek/helm:3.10.2
|
||||||
PLUGIN_USERNAME:
|
|
||||||
from_secret: smtp_username
|
|
||||||
PLUGIN_PASSWORD:
|
|
||||||
from_secret: smtp_password
|
|
||||||
PLUGIN_FROM:
|
|
||||||
from_secret: smtp_mail_address
|
|
||||||
image: docker.io/drillster/drone-email:latest
|
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
cpu: 50
|
cpu: 150
|
||||||
memory: 25M
|
memory: 150M
|
||||||
|
|
||||||
|
- name: email-notification
|
||||||
|
environment:
|
||||||
|
SMTP_FROM_ADDRESS:
|
||||||
|
from_secret: smtp_from_address
|
||||||
|
SMTP_FROM_NAME:
|
||||||
|
from_secret: smtp_from_name
|
||||||
|
SMTP_HOST:
|
||||||
|
from_secret: smtp_host
|
||||||
|
SMTP_USERNAME:
|
||||||
|
from_secret: smtp_username
|
||||||
|
SMTP_PASSWORD:
|
||||||
|
from_secret: smtp_password
|
||||||
|
image: docker.io/volkerraschek/drone-email:0.1.1
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
cpu: 150
|
||||||
|
memory: 150M
|
||||||
when:
|
when:
|
||||||
status:
|
status:
|
||||||
- changed
|
- changed
|
||||||
@ -52,7 +63,6 @@ trigger:
|
|||||||
- tag
|
- tag
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: kubernetes
|
type: kubernetes
|
||||||
name: release
|
name: release
|
||||||
@ -63,69 +73,22 @@ platform:
|
|||||||
steps:
|
steps:
|
||||||
- name: release-helm-chart
|
- name: release-helm-chart
|
||||||
commands:
|
commands:
|
||||||
- helm repo add volker.raschek https://charts.cryptic.systems/volker.raschek
|
- helm repo add drone https://charts.cryptic.systems/drone
|
||||||
- helm package --version ${DRONE_TAG} .
|
- helm package --version ${DRONE_TAG} .
|
||||||
- helm cm-push ${DRONE_REPO_NAME%-charts}-${DRONE_TAG}.tgz volker.raschek
|
- helm cm-push ${DRONE_REPO_NAME%-charts}-${DRONE_TAG}.tgz drone
|
||||||
environment:
|
environment:
|
||||||
HELM_REPO_PASSWORD:
|
HELM_REPO_PASSWORD:
|
||||||
from_secret: helm_repo_password
|
from_secret: helm_repo_password
|
||||||
HELM_REPO_USERNAME:
|
HELM_REPO_USERNAME:
|
||||||
from_secret: helm_repo_username
|
from_secret: helm_repo_username
|
||||||
image: docker.io/volkerraschek/helm:3.8.1
|
image: docker.io/volkerraschek/helm:3.10.2
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
cpu: 150
|
||||||
|
memory: 150M
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
event:
|
event:
|
||||||
- tag
|
- tag
|
||||||
repo:
|
repo:
|
||||||
- volker.raschek/drone-runner-charts
|
- volker.raschek/drone-runner-charts
|
||||||
|
|
||||||
---
|
|
||||||
kind: pipeline
|
|
||||||
type: kubernetes
|
|
||||||
name: sync
|
|
||||||
|
|
||||||
platform:
|
|
||||||
os: linux
|
|
||||||
arch: amd64
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: github
|
|
||||||
image: docker.io/appleboy/drone-git-push:latest
|
|
||||||
resources:
|
|
||||||
limits:
|
|
||||||
cpu: 50
|
|
||||||
memory: 25M
|
|
||||||
settings:
|
|
||||||
branch: master
|
|
||||||
remote: ssh://git@github.com/volker-raschek/drone-runner-charts.git
|
|
||||||
force: true
|
|
||||||
ssh_key:
|
|
||||||
from_secret: ssh_key
|
|
||||||
|
|
||||||
- name: email-notification
|
|
||||||
environment:
|
|
||||||
PLUGIN_HOST:
|
|
||||||
from_secret: smtp_host
|
|
||||||
PLUGIN_USERNAME:
|
|
||||||
from_secret: smtp_username
|
|
||||||
PLUGIN_PASSWORD:
|
|
||||||
from_secret: smtp_password
|
|
||||||
PLUGIN_FROM:
|
|
||||||
from_secret: smtp_mail_address
|
|
||||||
image: docker.io/drillster/drone-email:latest
|
|
||||||
resources:
|
|
||||||
limits:
|
|
||||||
cpu: 50
|
|
||||||
memory: 25M
|
|
||||||
when:
|
|
||||||
status:
|
|
||||||
- changed
|
|
||||||
- failure
|
|
||||||
|
|
||||||
trigger:
|
|
||||||
branch:
|
|
||||||
- master
|
|
||||||
event:
|
|
||||||
- push
|
|
||||||
repo:
|
|
||||||
- volker.raschek/drone-runner-charts
|
|
||||||
|
12
README.md
12
README.md
@ -1,19 +1,23 @@
|
|||||||
# drone-charts
|
# drone-charts
|
||||||
|
|
||||||
[](https://drone.cryptic.systems/volker.raschek/drone-runner-charts)
|
[](https://drone.cryptic.systems/volker.raschek/drone-runner-charts)
|
||||||
[](https://artifacthub.io/packages/search?repo=volker-raschek)
|
[](https://artifacthub.io/packages/search?repo=drone-ce)
|
||||||
|
|
||||||
This is an inofficial helm chart for
|
This is an inofficial helm chart for
|
||||||
[drone-runner](https://github.com/drone/drone-runner-kube) and should replace
|
[drone-runner](https://github.com/drone/drone-runner-kube) and should replace
|
||||||
the official unmainted helm chart
|
the official unmaintained helm chart
|
||||||
[repository](https://github.com/drone/drone-runner-kube).
|
[repository](https://github.com/drone/drone-runner-kube).
|
||||||
|
|
||||||
This helm chart can be found on [artifacthub.io](https://artifacthub.io/) and
|
This helm chart can be found on [artifacthub.io](https://artifacthub.io/) and
|
||||||
can be installed via helm.
|
can be installed via helm.
|
||||||
|
|
||||||
|
> The repository has been changed and causes error messages when interacting
|
||||||
|
> with the old repository definition. Please remove the chart repo
|
||||||
|
> `volker.raschek` and replace it with `drone`.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
helm repo add volker.raschek https://charts.cryptic.systems/volker.raschek
|
helm repo add drone https://charts.cryptic.systems/drone
|
||||||
helm install drone volker.raschek/drone-runner
|
helm install drone drone/drone-runner
|
||||||
```
|
```
|
||||||
|
|
||||||
## Customization
|
## Customization
|
||||||
|
@ -5,6 +5,7 @@ metadata:
|
|||||||
labels:
|
labels:
|
||||||
{{- include "droneRunner.labels" . | nindent 4 }}
|
{{- include "droneRunner.labels" . | nindent 4 }}
|
||||||
spec:
|
spec:
|
||||||
|
replicas: {{ .Values.replicaCount | default 1 }}
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
{{- include "droneRunner.selectorLabels" . | nindent 6 }}
|
{{- include "droneRunner.selectorLabels" . | nindent 6 }}
|
||||||
@ -37,7 +38,7 @@ spec:
|
|||||||
{{- toYaml .Values.resources | nindent 12 }}
|
{{- toYaml .Values.resources | nindent 12 }}
|
||||||
{{- if and (hasKey .Values.envFile "content") (hasKey .Values.config "DRONE_RUNNER_ENV_FILE") }}
|
{{- if and (hasKey .Values.envFile "content") (hasKey .Values.config "DRONE_RUNNER_ENV_FILE") }}
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: env-file
|
- name: custom-env-vars
|
||||||
mountPath: {{ dir .Values.config.DRONE_RUNNER_ENV_FILE }}
|
mountPath: {{ dir .Values.config.DRONE_RUNNER_ENV_FILE }}
|
||||||
readOnly: true
|
readOnly: true
|
||||||
{{- end}}
|
{{- end}}
|
||||||
@ -59,10 +60,10 @@ spec:
|
|||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if and (hasKey .Values.envFile "content") (hasKey .Values.config "DRONE_RUNNER_ENV_FILE") }}
|
{{- if and (hasKey .Values.envFile "content") (hasKey .Values.config "DRONE_RUNNER_ENV_FILE") }}
|
||||||
volumes:
|
volumes:
|
||||||
- name: env-file
|
- name: custom-env-vars
|
||||||
configMap:
|
configMap:
|
||||||
name: {{ include "droneRunner.fullname" . }}
|
name: {{ include "droneRunner.fullname" . }}
|
||||||
items:
|
items:
|
||||||
- key: {{ base .Values.config.DRONE_RUNNER_ENV_FILE }}
|
- key: custom-env-vars
|
||||||
path: {{ base .Values.config.DRONE_RUNNER_ENV_FILE }}
|
path: {{ base .Values.config.DRONE_RUNNER_ENV_FILE }}
|
||||||
{{- end}}
|
{{- end}}
|
||||||
|
@ -6,6 +6,6 @@ metadata:
|
|||||||
{{- include "droneRunner.labels" . | nindent 4 }}
|
{{- include "droneRunner.labels" . | nindent 4 }}
|
||||||
name: {{ include "droneRunner.fullname" . }}
|
name: {{ include "droneRunner.fullname" . }}
|
||||||
data:
|
data:
|
||||||
{{ base .Values.config.DRONE_RUNNER_ENV_FILE }}: |
|
custom-env-vars: |
|
||||||
{{ .Values.envFile.content }}
|
{{- .Values.envFile.content | nindent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
@ -337,7 +337,7 @@ config: {}
|
|||||||
# DRONE_UI_USERNAME: ""
|
# DRONE_UI_USERNAME: ""
|
||||||
|
|
||||||
envFile: {}
|
envFile: {}
|
||||||
# content: |
|
# content: |-
|
||||||
# KEY=VALUE
|
# KEY=VALUE
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user