Skip to content

Commit 892a914

Browse files
author
lijianguo
committed
chore(drone): add image_registries volumes
1 parent 2221930 commit 892a914

1 file changed

Lines changed: 13 additions & 6 deletions

File tree

.drone/drone.yml

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,10 @@ name: default
44

55
steps:
66
- name: test
7-
image: docker.io/library/docker:dind
7+
image: docker.io/drycc/go-dev
88
pull: if-not-exists
99
privileged: true
1010
commands:
11-
- nohup dockerd &
12-
- apk add make bash curl
1311
- VERSION=${DRONE_TAG:-latest} make test
1412
environment:
1513
DEV_REGISTRY:
@@ -19,21 +17,25 @@ steps:
1917
- push
2018
- tag
2119
- pull_request
20+
volumes:
21+
- name: image_registries
22+
path: /etc/containers/registries.conf
2223

2324
- name: build
24-
image: docker.io/library/docker:dind
25+
image: docker.io/drycc/go-dev
2526
pull: if-not-exists
2627
privileged: true
2728
commands:
28-
- nohup dockerd &
29-
- apk add make bash curl
3029
- VERSION=${DRONE_TAG:-latest} make build
3130
environment:
3231
DEV_REGISTRY:
3332
from_secret: dev_registry
3433
when:
3534
event:
3635
- tag
36+
volumes:
37+
- name: image_registries
38+
path: /etc/containers/registries.conf
3739

3840
- name: release
3941
image: plugins/github-release
@@ -49,3 +51,8 @@ trigger:
4951
- push
5052
- tag
5153
- pull_request
54+
55+
volumes:
56+
- name: image_registries
57+
host:
58+
path: /etc/containers/registries.conf

0 commit comments

Comments
 (0)