-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.drone.yml
65 lines (60 loc) · 1.58 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
kind: pipeline
name: "helm-builder-docker"
steps:
- name: start docker
image: docker:dind
detach: true
privileged: true
volumes:
- name: dockersock
path: /var/run/
- name: "docker build helm-builder"
image: keyporttech/helm-builder:2.12.2
volumes:
- name: dockersock
path: /var/run/
commands:
- "export LATEST_KUBERNETES_RELEASE=$(curl -sSL https://dl.k8s.io/release/stable.txt)"
- "export LATEST_HELM_RELEASE=$(./latestHelmVersion.sh)"
- "docker build --build-arg HELM_VERSION=$(./latestHelmVersion.sh) --build-arg KUBERNETES_VERSION=$(curl -sSL https://dl.k8s.io/release/stable.txt) ./docker/helm-builder"
when:
event:
include:
- pull_request
exclude:
- push
- name: "auto github release and dockerhub publish helm-builder"
environment:
DOCKER_IMAGE: keyporttech/helm-builder:2.12.2
CURRENT_HELM_RELEASE: 2.12.1
CURRENT_DOCKER_TAG: 2.12.1-3
DOCKERHUB_USERNAME:
from_secret: USERNAME
DOCKERHUB_PASSWORD:
from_secret: PASSWORD
GITHUB_TOKEN:
from secret: GITHUBTOKEN
GITHUB_KEY:
from secret: GITHUBSSHKEY64
image: docker
volumes:
- name: dockersock
path: /var/run/
commands:
- "./release-publish.sh"
- "echo $GITHUB_KEY | base64 -d > id_rsa"
- 'git config --global user.email "[email protected]"'
- 'git config --global user.name "keyporttech-bot"'
- 'git add *'
- 'GIT_SSH_COMMAND="ssh -i ./id_rsa" git push origin master'
when:
event:
include:
- push
exclude:
- pull_request
branch:
- master
volumes:
- name: dockersock
temp: {}