Skip to content

Commit 709b352

Browse files
committed
feat(drone): use go-dev replace dind
1 parent cd5d93d commit 709b352

2 files changed

Lines changed: 10 additions & 14 deletions

File tree

.drone/drone.yml

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,9 @@ platform:
88

99
steps:
1010
- name: test
11-
image: docker.io/library/docker:dind
11+
image: docker.io/drycc/go-dev
1212
privileged: true
1313
commands:
14-
- nohup dockerd &
15-
- apk add make bash curl
1614
- make test
1715
environment:
1816
DEV_REGISTRY:
@@ -23,11 +21,9 @@ steps:
2321
from_secret: docker_password
2422

2523
- name: publish
26-
image: docker.io/library/docker:dind
24+
image: docker.io/drycc/go-dev
2725
privileged: true
2826
commands:
29-
- nohup dockerd &
30-
- apk add make bash curl
3127
- echo $DOCKER_PASSWORD | docker login --username $DOCKER_USERNAME --password-stdin
3228
- make build push
3329
environment:
@@ -54,22 +50,18 @@ platform:
5450

5551
steps:
5652
- name: test
57-
image: docker.io/library/docker:dind
53+
image: docker.io/drycc/go-dev
5854
privileged: true
5955
commands:
60-
- nohup dockerd &
61-
- apk add make bash curl
6256
- make test
6357
environment:
6458
DEV_REGISTRY:
6559
from_secret: dev_registry
6660

6761
- name: publish
68-
image: docker.io/library/docker:dind
62+
image: docker.io/drycc/go-dev
6963
privileged: true
7064
commands:
71-
- nohup dockerd &
72-
- apk add make bash curl
7365
- echo $DOCKER_PASSWORD | docker login --username $DOCKER_USERNAME --password-stdin
7466
- make build push
7567
environment:
@@ -119,3 +111,4 @@ steps:
119111
depends_on:
120112
- linux-amd64
121113
- linux-arm64
114+

rootfs/usr/local/bin/docker

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
#!/bin/bash
2-
3-
podman --storage-driver=vfs --events-backend=file $@
2+
if [ "$1" == "push" ]; then
3+
podman --storage-driver=vfs --cgroup-manager=cgroupfs --events-backend=file "$@" --format=v2s2
4+
else
5+
podman --storage-driver=vfs --cgroup-manager=cgroupfs --events-backend=file "$@"
6+
fi

0 commit comments

Comments
 (0)