-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdrone.yml
More file actions
57 lines (54 loc) · 1.38 KB
/
drone.yml
File metadata and controls
57 lines (54 loc) · 1.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
kind: pipeline
type: exec
name: default
steps:
- name: test
commands:
- mkdir -p $HOMEPATH/.docker; echo $IMAGE_PULL_SECRETS > $HOMEPATH/.docker/config.json
- VERSION=${DRONE_TAG:-latest} make test
environment:
DEV_REGISTRY:
from_secret: dev_registry
DRYCC_REGISTRY:
from_secret: drycc_registry
IMAGE_PULL_SECRETS:
from_secret: container_pull_secrets
when:
event:
- push
- tag
- pull_request
- name: build
commands:
- mkdir -p $HOMEPATH/.docker; echo $IMAGE_PULL_SECRETS > $HOMEPATH/.docker/config.json
- VERSION=${DRONE_TAG:-latest} make build
environment:
DEV_REGISTRY:
from_secret: dev_registry
DRYCC_REGISTRY:
from_secret: drycc_registry
IMAGE_PULL_SECRETS:
from_secret: container_pull_secrets
when:
event:
- tag
- name: release
commands:
- docker run --rm
-e DRONE_BUILD_EVENT=tag
-e DRONE_REPO_OWNER="$DRONE_REPO_OWNER"
-e DRONE_REPO_NAME="$DRONE_REPO_NAME"
-e PLUGIN_API_KEY="$API_KEY"
-e PLUGIN_BASE_URL="https://api.github.com/"
-e PLUGIN_UPLOAD_URL="https://uploads.github.com/"
-e DRONE_COMMIT_REF="refs/tags/$DRONE_TAG"
-e PLUGIN_OVERWRITE="true"
-e PLUGIN_FILES="_dist/*"
-v $(pwd):$(pwd)
-w $(pwd)
docker.io/plugins/github-release
environment:
API_KEY:
from_secret: github_token
when:
event: tag