Skip to content

Commit a05eec6

Browse files
committed
chore(workflow-cli): use exec runner replace docker runner
1 parent 2a49376 commit a05eec6

1 file changed

Lines changed: 16 additions & 29 deletions

File tree

.drone/drone.yml

Lines changed: 16 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
kind: pipeline
2-
type: docker
2+
type: exec
33
name: default
44

55
steps:
66
- name: test
7-
image: docker.io/drycc/go-dev
8-
pull: always
9-
privileged: true
107
commands:
118
- VERSION=${DRONE_TAG:-latest} make test
129
environment:
@@ -17,14 +14,8 @@ steps:
1714
- push
1815
- tag
1916
- pull_request
20-
volumes:
21-
- name: image_registries
22-
path: /etc/containers/registries.conf
2317

2418
- name: build
25-
image: docker.io/drycc/go-dev
26-
pull: always
27-
privileged: true
2819
commands:
2920
- VERSION=${DRONE_TAG:-latest} make build
3021
environment:
@@ -33,26 +24,22 @@ steps:
3324
when:
3425
event:
3526
- tag
36-
volumes:
37-
- name: image_registries
38-
path: /etc/containers/registries.conf
3927

4028
- name: release
41-
image: plugins/github-release
42-
settings:
43-
api_key:
29+
commands:
30+
- docker run --rm
31+
-e DRONE_BUILD_EVENT=tag
32+
-e DRONE_REPO_OWNER="$DRONE_REPO_OWNER"
33+
-e DRONE_REPO_NAME="$DRONE_REPO_NAME"
34+
-e PLUGIN_API_KEY="$API_KEY"
35+
-e DRONE_COMMIT_REF="refs/tags/$DRONE_TAG"
36+
-e PLUGIN_OVERWRITE="true"
37+
-e PLUGIN_FILES="_dist/*"
38+
-v $(pwd):$(pwd)
39+
-w $(pwd)
40+
plugins/github-release
41+
environment:
42+
API_KEY:
4443
from_secret: github_token
45-
files: _dist/*
4644
when:
47-
event: tag
48-
49-
trigger:
50-
event:
51-
- push
52-
- tag
53-
- pull_request
54-
55-
volumes:
56-
- name: image_registries
57-
host:
58-
path: /etc/containers/registries.conf
45+
event: tag

0 commit comments

Comments
 (0)