Skip to content

Commit 86d9f31

Browse files
committed
chore(workflow-cli): use woodpecker replace drone
1 parent 58ee9a9 commit 86d9f31

4 files changed

Lines changed: 68 additions & 61 deletions

File tree

.drone/drone.yml

Lines changed: 0 additions & 58 deletions
This file was deleted.

.woodpecker/build-linux.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
platform: linux/amd64
2+
3+
labels:
4+
type: exec
5+
6+
pipeline:
7+
- name: build-linux
8+
image: bash
9+
commands:
10+
- sed -i "s#canary#$CI_COMMIT_TAG#g" version/version.go
11+
- VERSION=$CI_COMMIT_TAG make build
12+
secrets:
13+
- dev_registry
14+
- drycc_registry
15+
- container_username
16+
- container_password
17+
when:
18+
event:
19+
- push
20+
- tag
21+
22+
- name: publish-linux
23+
image: bash
24+
commands:
25+
- docker run --rm
26+
-e DRONE_BUILD_EVENT=tag
27+
-e DRONE_REPO_OWNER="$CI_REPO_OWNER"
28+
-e DRONE_REPO_NAME="$CI_REPO_NAME"
29+
-e PLUGIN_API_KEY="$GITHUB_TOKEN"
30+
-e PLUGIN_BASE_URL="https://api.github.com/"
31+
-e PLUGIN_UPLOAD_URL="https://uploads.github.com/"
32+
-e DRONE_COMMIT_REF="refs/tags/$CI_COMMIT_TAG"
33+
-e PLUGIN_OVERWRITE="true"
34+
-e PLUGIN_FILES="_dist/*"
35+
-v $(pwd):$(pwd)
36+
-w $(pwd)
37+
docker.io/plugins/github-release
38+
secrets:
39+
- github_token
40+
when:
41+
event:
42+
- tag
43+
44+
depends_on:
45+
- test-linux

.woodpecker/test-linux.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
matrix:
2+
platform:
3+
- linux/amd64
4+
- linux/arm64
5+
6+
platform: ${platform}
7+
8+
labels:
9+
type: exec
10+
11+
pipeline:
12+
- name: test-linux
13+
image: bash
14+
commands:
15+
- make test
16+
secrets:
17+
- dev_registry
18+
when:
19+
event:
20+
- push
21+
- tag

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Drycc Client
22

3-
[![Build Status](https://drone.drycc.cc/api/badges/drycc/workflow-cli/status.svg)](https://drone.drycc.cc/drycc/workflow-cli)
3+
[![Build Status](https://woodpecker.drycc.cc/api/badges/drycc/workflow-cli/status.svg)](https://woodpecker.drycc.cc/drycc/workflow-cli)
44
[![Go Report Card](https://goreportcard.com/badge/github.com/drycc/workflow-cli)](https://goreportcard.com/report/github.com/drycc/workflow-cli)
55
[![codebeat badge](https://codebeat.co/badges/b609cb7f-7b42-4214-8787-09298f553176)](https://codebeat.co/projects/github-com-drycc-workflow-cli-main)
66
[![codecov](https://codecov.io/gh/drycc/workflow-cli/branch/main/graph/badge.svg)](https://codecov.io/gh/drycc/workflow-cli)
@@ -70,5 +70,4 @@ see [LICENSE](https://github.com/drycc/workflow-cli/blob/main/LICENSE)
7070
[blog]: https://blog.drycc.info/blog/
7171
[slack community]: https://slack.drycc.com/
7272

73-
74-
[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fdrycc%2Fworkflow-cli.svg?type=large)](https://app.fossa.com/projects/git%2Bgithub.com%2Fdrycc%2Fworkflow-cli?ref=badge_large)
73+
[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fdrycc%2Fworkflow-cli.svg?type=large)](https://app.fossa.com/projects/git%2Bgithub.com%2Fdrycc%2Fworkflow-cli?ref=badge_large)

0 commit comments

Comments
 (0)