Skip to content

Commit 33769e5

Browse files
committed
chore(CICD): use drone
1 parent 853d55b commit 33769e5

4 files changed

Lines changed: 48 additions & 15 deletions

File tree

.drone/drone.yaml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
kind: pipeline
2+
type: docker
3+
name: default
4+
5+
steps:
6+
- name: test
7+
image: docker.io/library/docker:dind
8+
pull: if-not-exists
9+
privileged: true
10+
commands:
11+
- nohup dockerd &
12+
- apk add make bash curl git
13+
- make test
14+
when:
15+
event:
16+
- push
17+
- tag
18+
- pull_request
19+
20+
- name: build
21+
image: docker.io/library/docker:dind
22+
pull: if-not-exists
23+
privileged: true
24+
commands:
25+
- nohup dockerd &
26+
- apk add make bash curl git
27+
- make build-tag
28+
- mv _dist/$DRONE_TAG dist
29+
when:
30+
event:
31+
- tag
32+
33+
- name: release
34+
image: plugins/github-release
35+
settings:
36+
api_key:
37+
from_secret: github_token
38+
files: dist/*
39+
when:
40+
event: tag
41+
42+
trigger:
43+
event:
44+
- push
45+
- tag
46+
- pull_request

.travis.yml

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

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Drycc Client
22

3-
[![Build Status](https://travis-ci.org/drycc/workflow-cli.svg?branch=main)](https://travis-ci.org/drycc/workflow-cli)
3+
[![Build Status](https://drone.drycc.cc/api/badges/drycc/workflow-cli/status.svg)](https://drone.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)

scripts/build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ go-build(){
1111

1212
GOOS_LIST=("linux" "windows" "darwin")
1313
GOARCH_LIST=("386" "amd64" "arm" "arm64")
14-
EXCLUDE_TARGET=("darwin/arm" "darwin/arm64" "windows/arm64")
14+
EXCLUDE_TARGET=("darwin/386", "darwin/arm" "darwin/arm64" "windows/arm64")
1515

1616
for GOOS in ${GOOS_LIST[@]}; do
1717
for GOARCH in ${GOARCH_LIST[@]}; do

0 commit comments

Comments
 (0)