Skip to content
This repository has been archived by the owner on Sep 20, 2022. It is now read-only.

Commit

Permalink
add automated releases
Browse files Browse the repository at this point in the history
  • Loading branch information
rck committed Jul 28, 2017
1 parent f1eb047 commit c97ab3e
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
16 changes: 13 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,16 @@ language: go
go:
- tip
install:
- go get github.com/linbit/drbdtop/pkg/collect
- go get github.com/linbit/drbdtop/pkg/display
- go get github.com/linbit/drbdtop/pkg/resource
- go get github.com/linbit/drbdtop/pkg/collect
- go get github.com/linbit/drbdtop/pkg/display
- go get github.com/linbit/drbdtop/pkg/resource
before_deploy: "make release"
deploy:
provider: releases
api_key:
secure: nuWnrw6oE0B5ExPe2U9wMXltqVIJIAM6G56j4B11w+dBcC7JK4aZwthZ35ID4OijKbEMw12bnagXj81sk1E72r7JdBAIt7uZbKfLsevK/kdiAMckt1GSyi5Gbr70bRv0b54xq9BlBvg7TeGoFGGZiNO/Vronvamfj/y+V1WVTQTvdpTDhPxXHTvlObReClFRCskyIpA4lB9DuWNHiFwksFZhcwZRNI2+qvljGQOdU0I/L14eKETpt4XRozyKT8g8Y2OtA+JX0+8agB0foRdrbxjw0fSYvYgPA3ySaBAH+hOKZCWseN9cZrvyeR9ZufsVZXoFyFHoeTQEnrlo2Ov5MEwtlRrDPolk6xKwAI5NCKVapZUeDdsxcy3IpRVhay75NW0Txtx4RHWn9lJcHkWsFAaA5bE5HFCA9ajzKuZXSiE61m/l5LWf++m9m6duAFyvXHJed9ftw0aCsO46Pmq2LMYto2BlMbozqKMdc8ebiiv6HQZkXzUWNzMmWeZTAbX4hvZc0MCsMJjEay1AuPzrv45KPfSeXqHehP66DzUEYbs7wQH4HpvzML+sy6SyyyFQH+yelMmeLC9R3d81W5wsB8GYCVLVw8EheHABPOSKuk7weasg5DBu/+ksZ2IGaW/6svSPNIqtYyk9RITbBl/PmcqJ1B4DHAWe58aORrgbzOA=
file: drbdtop-linux-amd64
skip_cleanup: true
on:
repo: LINBIT/drbdtop
tags: true
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
PROJECT_NAME = drbdtop
MAIN = drbdtop.go
VERSION=`git describe --tags --always --dirty`
OS=linux

GO = go
LDFLAGS = -ldflags "-X main.Version=${VERSION}"
Expand All @@ -18,3 +19,8 @@ build:

install:
$(GO) install

release:
for os in ${OS}; do \
GOOS=$$os GOARCH=amd64 go build ${LDFLAGS} -o ${PROJECT_NAME}-$$os-amd64; \
done

0 comments on commit c97ab3e

Please sign in to comment.