-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathbuild-linux.yml
More file actions
44 lines (41 loc) · 939 Bytes
/
build-linux.yml
File metadata and controls
44 lines (41 loc) · 939 Bytes
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
labels:
type: exec
platform: linux/amd64
steps:
- name: build-linux
image: bash
commands:
- sed -i "s#canary#$CI_COMMIT_TAG#g" version/version.go
- VERSION=$CI_COMMIT_TAG make build
secrets:
- dev_registry
- drycc_registry
- container_username
- container_password
when:
event:
- push
- tag
- name: publish-linux
image: bash
commands:
- podman run --rm
-e DRONE_BUILD_EVENT=tag
-e DRONE_REPO_OWNER="$CI_REPO_OWNER"
-e DRONE_REPO_NAME="$CI_REPO_NAME"
-e PLUGIN_API_KEY="$GITHUB_TOKEN"
-e PLUGIN_BASE_URL="https://api.github.com/"
-e PLUGIN_UPLOAD_URL="https://uploads.github.com/"
-e DRONE_COMMIT_REF="refs/tags/$CI_COMMIT_TAG"
-e PLUGIN_OVERWRITE="true"
-e PLUGIN_FILES="_dist/*"
-v $(pwd):$(pwd)
-w $(pwd)
docker.io/plugins/github-release
secrets:
- github_token
when:
event:
- tag
depends_on:
- test-linux