-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.woodpecker.yaml
47 lines (44 loc) · 1.17 KB
/
.woodpecker.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
steps:
- name: build-dry-run
image: woodpeckerci/plugin-docker-buildx
settings:
dry-run: true
repo: registry-local.devops.svc.cluster.local/rojandincse
tags: git-${CI_COMMIT_SHA:0:4}
dockerfile: Dockerfile
when:
- event: [pull_request]
branch:
exclude: master
- name: publish
image: woodpeckerci/plugin-docker-buildx
settings:
repo: registry-local.devops.svc.cluster.local/rojandincse
tags: git-${CI_COMMIT_SHA:0:4}
dockerfile: Dockerfile
buildkit_config: |
[registry."registry-local.devops.svc.cluster.local"]
http = true
insecure = true
when:
- event: [push]
branch: [master]
- name: deploy
image: pelotech/drone-helm3
settings:
mode: upgrade
namespace: apps
chart: ./chart
release: web
skip_tls_verify: true
values: "image.tag=git-${CI_COMMIT_SHA:0:4}"
values_files:
- "environment/values.yaml"
api_server:
from_secret: api_server
kubernetes_token:
from_secret: kubernetes_token
depends_on: [publish]
when:
- event: [push]
branch: [master]