You've already forked drone-runner-charts
Compare commits
22 Commits
Author | SHA1 | Date | |
---|---|---|---|
e3155c9223 | |||
ea2ca22e7c
|
|||
cfd5890a1c | |||
1c94c9de06
|
|||
8d67cc291f | |||
3dcd0742a3
|
|||
f6e9e6bce7 | |||
c2188e6838 | |||
e41ee3cd47
|
|||
010a453c7c
|
|||
86174ea6dd | |||
2fd108de5b
|
|||
b5222f3ead
|
|||
e8339895e4 | |||
64b04745e3
|
|||
7929bad7e3
|
|||
28f5fca2d9
|
|||
8a2e44c3d0 | |||
0b6ce2c01c | |||
cdca3979d9
|
|||
de3547c53d | |||
428f37e4ad |
63
.drone.yml
63
.drone.yml
@ -11,7 +11,7 @@ steps:
|
|||||||
- name: helm lint
|
- name: helm lint
|
||||||
commands:
|
commands:
|
||||||
- helm lint
|
- helm lint
|
||||||
image: quay.io/helmpack/chart-testing:latest
|
image: docker.io/volkerraschek/helm:3.9.0
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
cpu: 50
|
cpu: 50
|
||||||
@ -20,7 +20,7 @@ steps:
|
|||||||
- name: markdown lint
|
- name: markdown lint
|
||||||
commands:
|
commands:
|
||||||
- markdownlint *.md
|
- markdownlint *.md
|
||||||
image: docker.io/volkerraschek/markdownlint:0.30.0
|
image: docker.io/volkerraschek/markdownlint:0.31.1
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
cpu: 50
|
cpu: 50
|
||||||
@ -52,7 +52,6 @@ trigger:
|
|||||||
- tag
|
- tag
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: kubernetes
|
type: kubernetes
|
||||||
name: release
|
name: release
|
||||||
@ -63,7 +62,6 @@ platform:
|
|||||||
steps:
|
steps:
|
||||||
- name: release-helm-chart
|
- name: release-helm-chart
|
||||||
commands:
|
commands:
|
||||||
- helm plugin install https://github.com/chartmuseum/helm-push.git
|
|
||||||
- helm repo add volker.raschek https://charts.cryptic.systems/volker.raschek
|
- helm repo add volker.raschek https://charts.cryptic.systems/volker.raschek
|
||||||
- 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 volker.raschek
|
||||||
@ -72,61 +70,14 @@ steps:
|
|||||||
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/alpine/helm:3.7.2
|
image: docker.io/volkerraschek/helm:3.9.0
|
||||||
|
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
|
|
||||||
|
@ -2,8 +2,8 @@ apiVersion: v2
|
|||||||
name: drone-runner
|
name: drone-runner
|
||||||
description: Helm chart for a drone runner based on kubernetes
|
description: Helm chart for a drone runner based on kubernetes
|
||||||
type: application
|
type: application
|
||||||
version: "0.3.0"
|
version: "0.4.0"
|
||||||
appVersion: "1.0.0-rc.1"
|
appVersion: "1.0.0-rc.3"
|
||||||
icon: https://readme.drone.io/logo.svg
|
icon: https://readme.drone.io/logo.svg
|
||||||
|
|
||||||
keywords:
|
keywords:
|
||||||
|
@ -3,6 +3,23 @@
|
|||||||
"automergeStrategy": "merge-commit",
|
"automergeStrategy": "merge-commit",
|
||||||
"automergeType": "pr",
|
"automergeType": "pr",
|
||||||
"assignees": [ "volker.raschek" ],
|
"assignees": [ "volker.raschek" ],
|
||||||
|
"labels": [ "renovate" ],
|
||||||
|
"packageRules": [
|
||||||
|
{
|
||||||
|
"addLabels": [ "renovate/drone-runner", "renovate/automerge" ],
|
||||||
|
"automerge": true,
|
||||||
|
"matchManagers": "droneci",
|
||||||
|
"matchUpdateTypes": [ "minor", "patch"]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"addLabels": [ "renovate/drone-runner", "renovate/automerge" ],
|
||||||
|
"automerge": false,
|
||||||
|
"matchPackageNames": [ "drone-runner" ],
|
||||||
|
"matchManagers": [ "regex" ]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"rebaseLabel": "renovate/rebase",
|
||||||
|
"rebaseWhen": "behind-base-branch",
|
||||||
"regexManagers": [
|
"regexManagers": [
|
||||||
{
|
{
|
||||||
"description": "Update container image reference",
|
"description": "Update container image reference",
|
||||||
@ -12,8 +29,9 @@
|
|||||||
"matchStrings": [
|
"matchStrings": [
|
||||||
"appVersion: \"(?<currentValue>.*?)\"\\s+"
|
"appVersion: \"(?<currentValue>.*?)\"\\s+"
|
||||||
],
|
],
|
||||||
"depNameTemplate": "docker.io/drone/drone-runner-kube",
|
"datasourceTemplate": "docker",
|
||||||
"datasourceTemplate": "docker"
|
"depNameTemplate": "drone-runner",
|
||||||
|
"lookupNameTemplate": "docker.io/drone/drone-runner-kube"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@ -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}}
|
||||||
@ -49,6 +50,9 @@ spec:
|
|||||||
nodeSelector:
|
nodeSelector:
|
||||||
{{- toYaml . | nindent 8 }}
|
{{- toYaml . | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- if .Values.podPriorityClassName }}
|
||||||
|
priorityClassName: {{ .Values.podPriorityClassName }}
|
||||||
|
{{- end }}
|
||||||
serviceAccountName: {{ include "droneRunner.fullname" . }}
|
serviceAccountName: {{ include "droneRunner.fullname" . }}
|
||||||
{{- with .Values.tolerations }}
|
{{- with .Values.tolerations }}
|
||||||
tolerations:
|
tolerations:
|
||||||
@ -56,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 }}
|
@ -16,6 +16,8 @@ fullnameOverride: ""
|
|||||||
|
|
||||||
podAnnotations: {}
|
podAnnotations: {}
|
||||||
|
|
||||||
|
podPriorityClassName: ""
|
||||||
|
|
||||||
podSecurityContext: {}
|
podSecurityContext: {}
|
||||||
# fsGroup: 2000
|
# fsGroup: 2000
|
||||||
|
|
||||||
@ -27,7 +29,7 @@ securityContext: {}
|
|||||||
# runAsNonRoot: true
|
# runAsNonRoot: true
|
||||||
# runAsUser: 1000
|
# runAsUser: 1000
|
||||||
|
|
||||||
config:
|
config: {}
|
||||||
# DRONE_ANNOTATIONS_DEFAULT
|
# DRONE_ANNOTATIONS_DEFAULT
|
||||||
# Optional string map. Provides a set of default annotations used when
|
# Optional string map. Provides a set of default annotations used when
|
||||||
# creating the pipeline pod. The default annotation values are appended to the
|
# creating the pipeline pod. The default annotation values are appended to the
|
||||||
@ -335,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