Skip to content

Commit 5a9fd76

Browse files
committed
Enable docker for publishing from drone
1 parent 50dae0d commit 5a9fd76

File tree

1 file changed

+8
-16
lines changed

1 file changed

+8
-16
lines changed

.drone.yml

+8-16
Original file line numberDiff line numberDiff line change
@@ -44,22 +44,6 @@ steps:
4444
commands:
4545
- make -j4 build
4646

47-
- name: publish
48-
image: docker.io/bitpoke/build:v0.5.0
49-
environment:
50-
DOCKER_REGISTRY:
51-
from_secret: DOCKER_REGISTRY
52-
DOCKER_USERNAME:
53-
from_secret: DOCKER_USERNAME
54-
DOCKER_PASSWORD:
55-
from_secret: DOCKER_PASSWORD
56-
commands:
57-
- /usr/local/bin/setup-credentials-helper.sh
58-
- make publish
59-
when:
60-
ref:
61-
- refs/tags/**
62-
6347
services:
6448
- name: docker
6549
image: docker:20.10.8-dind-rootless
@@ -110,10 +94,18 @@ steps:
11094
from_secret: DOCKER_USERNAME
11195
DOCKER_PASSWORD:
11296
from_secret: DOCKER_PASSWORD
97+
# make build system happy by setting a branch name on tags
98+
BRANCH_NAME: release-${DRONE_TAG}
11399
commands:
114100
- /usr/local/bin/setup-credentials-helper.sh
115101
- make publish
116102

103+
services:
104+
- name: docker
105+
image: docker:20.10.8-dind-rootless
106+
environment:
107+
DOCKER_TLS_CERTDIR: ""
108+
117109
---
118110
kind: pipeline
119111
name: e2e testing

0 commit comments

Comments
 (0)