Skip to content

Commit 03a2c1f

Browse files
committed
chore(controller): use exec runner replace docker runner
1 parent 53fff6c commit 03a2c1f

1 file changed

Lines changed: 3 additions & 32 deletions

File tree

.drone/drone.yml

Lines changed: 3 additions & 32 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 test docker-build-test upload-coverage
1613
environment:
@@ -24,14 +21,8 @@ steps:
2421
- push
2522
- tag
2623
- pull_request
27-
volumes:
28-
- name: image_registries
29-
path: /etc/containers/registries.conf
3024

3125
- name: publish
32-
image: docker.io/drycc/go-dev
33-
pull: always
34-
privileged: true
3526
commands:
3627
- echo $DOCKER_PASSWORD | docker login $DRYCC_REGISTRY --username $DOCKER_USERNAME --password-stdin
3728
- make docker-build docker-immutable-push
@@ -49,24 +40,16 @@ steps:
4940
event:
5041
- push
5142
- tag
52-
volumes:
53-
- name: image_registries
54-
path: /etc/containers/registries.conf
5543

5644
trigger:
5745
event:
5846
- push
5947
- tag
6048
- pull_request
6149

62-
volumes:
63-
- name: image_registries
64-
host:
65-
path: /etc/containers/registries.conf
66-
6750
---
6851
kind: pipeline
69-
type: docker
52+
type: exec
7053
name: linux-arm64
7154

7255
platform:
@@ -75,9 +58,6 @@ platform:
7558

7659
steps:
7760
- name: publish
78-
image: docker.io/drycc/go-dev
79-
pull: always
80-
privileged: true
8161
commands:
8262
- echo $DOCKER_PASSWORD | docker login $DRYCC_REGISTRY --username $DOCKER_USERNAME --password-stdin
8363
- make docker-build docker-immutable-push
@@ -91,20 +71,12 @@ steps:
9171
from_secret: docker_username
9272
DOCKER_PASSWORD:
9373
from_secret: docker_password
94-
volumes:
95-
- name: image_registries
96-
path: /etc/containers/registries.conf
9774

9875
trigger:
9976
event:
10077
- push
10178
- tag
10279

103-
volumes:
104-
- name: image_registries
105-
host:
106-
path: /etc/containers/registries.conf
107-
10880
---
10981
kind: pipeline
11082
type: docker
@@ -145,12 +117,11 @@ depends_on:
145117

146118
---
147119
kind: pipeline
148-
type: docker
120+
type: exec
149121
name: chart
150122

151123
steps:
152124
- name: generate chart
153-
image: docker.io/drycc/python-dev
154125
commands:
155126
- IMAGE_TAG=$([ ! -z $DRONE_TAG ] && echo \"${DRONE_TAG:1}\" || echo \"canary\")
156127
- sed -i "s/image_tag:\ \"canary\"/image_tag:\ $IMAGE_TAG/g" charts/controller/values.yaml

0 commit comments

Comments
 (0)