Skip to content

Commit abe1c28

Browse files
committed
Adding drone and goreleaser support
1 parent 548a46e commit abe1c28

File tree

3 files changed

+47
-1
lines changed

3 files changed

+47
-1
lines changed

.drone.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
workspace:
2+
base: /go
3+
path: src/github.com/UnAfraid/go-github-issues-mover
4+
5+
clone:
6+
git:
7+
image: plugins/git
8+
tags: true
9+
10+
pipeline:
11+
test:
12+
image: golang:latest
13+
commands:
14+
- go get -t
15+
- go test
16+
release:
17+
image: golang:latest
18+
commands:
19+
- go get -t
20+
- go build
21+
- curl -sL https://git.io/goreleaser | bash /dev/stdin
22+
secrets: [ github_token ]
23+
when:
24+
event: tag

.goreleaser.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
project_name: go-github-issues-mover
2+
release:
3+
github:
4+
owner: UnAfraid
5+
name: go-github-issues-mover
6+
name_template: '{{.Tag}}'
7+
builds:
8+
-
9+
ldflags: -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}} -extldflags "-static"
10+
env:
11+
- CGO_ENABLED=0
12+
goos:
13+
- windows
14+
- linux
15+
- darwin
16+
goarch:
17+
- amd64
18+
- 386
19+
- arm
20+
goarm:
21+
- 6
22+
- 7

config.yml.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ destination:
1212
private: true
1313
contributors:
1414
unafraid: asdzaf89asd7a8asd
15-
anotherUser: zasdasdasdasdasda
15+
anotherUser: zasdasdasdasdasda

0 commit comments

Comments
 (0)