Skip to content

Commit 0a5fef5

Browse files
committed
chore(database): use exec runner replace docker runner
1 parent b0c4b00 commit 0a5fef5

1 file changed

Lines changed: 11 additions & 48 deletions

File tree

.drone/drone.yml

Lines changed: 11 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
kind: pipeline
2-
type: docker
2+
type: exec
33
name: linux-amd64
44

55
platform:
@@ -8,9 +8,6 @@ platform:
88

99
steps:
1010
- name: test
11-
image: docker.io/drycc/go-dev
12-
pull: always
13-
privileged: true
1411
commands:
1512
- make docker-build test
1613
environment:
@@ -22,14 +19,8 @@ steps:
2219
- push
2320
- tag
2421
- pull_request
25-
volumes:
26-
- name: image_registries
27-
path: /etc/containers/registries.conf
2822

2923
- name: publish
30-
image: docker.io/drycc/go-dev
31-
pull: always
32-
privileged: true
3324
commands:
3425
- echo $DOCKER_PASSWORD | docker login $DRYCC_REGISTRY --username $DOCKER_USERNAME --password-stdin
3526
- make docker-build docker-immutable-push
@@ -47,24 +38,10 @@ steps:
4738
event:
4839
- push
4940
- tag
50-
volumes:
51-
- name: image_registries
52-
path: /etc/containers/registries.conf
53-
54-
trigger:
55-
event:
56-
- push
57-
- tag
58-
- pull_request
59-
60-
volumes:
61-
- name: image_registries
62-
host:
63-
path: /etc/containers/registries.conf
6441

6542
---
6643
kind: pipeline
67-
type: docker
44+
type: exec
6845
name: linux-arm64
6946

7047
platform:
@@ -73,9 +50,6 @@ platform:
7350

7451
steps:
7552
- name: publish
76-
image: docker.io/drycc/go-dev
77-
pull: always
78-
privileged: true
7953
commands:
8054
- echo $DOCKER_PASSWORD | docker login $DRYCC_REGISTRY --username $DOCKER_USERNAME --password-stdin
8155
- make docker-build docker-immutable-push
@@ -89,19 +63,10 @@ steps:
8963
from_secret: docker_username
9064
DOCKER_PASSWORD:
9165
from_secret: docker_password
92-
volumes:
93-
- name: image_registries
94-
path: /etc/containers/registries.conf
95-
96-
trigger:
97-
event:
98-
- push
99-
- tag
100-
101-
volumes:
102-
- name: image_registries
103-
host:
104-
path: /etc/containers/registries.conf
66+
when:
67+
event:
68+
- push
69+
- tag
10570

10671
---
10772
kind: pipeline
@@ -143,12 +108,11 @@ depends_on:
143108

144109
---
145110
kind: pipeline
146-
type: docker
111+
type: exec
147112
name: chart
148113

149114
steps:
150115
- name: generate chart
151-
image: docker.io/drycc/python-dev
152116
commands:
153117
- IMAGE_TAG=$([ ! -z $DRONE_TAG ] && echo \"${DRONE_TAG:1}\" || echo \"canary\")
154118
- sed -i "s/image_tag:\ \"canary\"/image_tag:\ $IMAGE_TAG/g" charts/database/values.yaml
@@ -161,8 +125,7 @@ steps:
161125
from_secret: chartmuseum_password
162126
CHARTMUSEUM_API:
163127
from_secret: chartmuseum_api
164-
165-
trigger:
166-
event:
167-
- push
168-
- tag
128+
when:
129+
event:
130+
- push
131+
- tag

0 commit comments

Comments
 (0)