Skip to content

Commit a919d9b

Browse files
committed
chore(passport): use exec runner replace docker runner
1 parent 5b35c4d commit a919d9b

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 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,10 @@ steps:
4940
event:
5041
- push
5142
- tag
52-
volumes:
53-
- name: image_registries
54-
path: /etc/containers/registries.conf
55-
56-
trigger:
57-
event:
58-
- push
59-
- tag
60-
- pull_request
61-
62-
volumes:
63-
- name: image_registries
64-
host:
65-
path: /etc/containers/registries.conf
6643

6744
---
6845
kind: pipeline
69-
type: docker
46+
type: exec
7047
name: linux-arm64
7148

7249
platform:
@@ -75,9 +52,6 @@ platform:
7552

7653
steps:
7754
- name: publish
78-
image: docker.io/drycc/go-dev
79-
pull: always
80-
privileged: true
8155
commands:
8256
- echo $DOCKER_PASSWORD | docker login $DRYCC_REGISTRY --username $DOCKER_USERNAME --password-stdin
8357
- make docker-build docker-immutable-push
@@ -91,19 +65,10 @@ steps:
9165
from_secret: docker_username
9266
DOCKER_PASSWORD:
9367
from_secret: docker_password
94-
volumes:
95-
- name: image_registries
96-
path: /etc/containers/registries.conf
97-
98-
trigger:
99-
event:
100-
- push
101-
- tag
102-
103-
volumes:
104-
- name: image_registries
105-
host:
106-
path: /etc/containers/registries.conf
68+
when:
69+
event:
70+
- push
71+
- tag
10772

10873
---
10974
kind: pipeline
@@ -145,12 +110,11 @@ depends_on:
145110

146111
---
147112
kind: pipeline
148-
type: docker
113+
type: exec
149114
name: chart
150115

151116
steps:
152117
- name: generate chart
153-
image: docker.io/drycc/python-dev
154118
commands:
155119
- IMAGE_TAG=$([ ! -z $DRONE_TAG ] && echo \"${DRONE_TAG:1}\" || echo \"canary\")
156120
- sed -i "s/image_tag:\ \"canary\"/image_tag:\ $IMAGE_TAG/g" charts/passport/values.yaml
@@ -163,8 +127,7 @@ steps:
163127
from_secret: chartmuseum_password
164128
CHARTMUSEUM_API:
165129
from_secret: chartmuseum_api
166-
167-
trigger:
168-
event:
169-
- push
170-
- tag
130+
when:
131+
event:
132+
- push
133+
- tag

0 commit comments

Comments
 (0)