Skip to content

Commit

Permalink
deploy a release based on tag version
Browse files Browse the repository at this point in the history
  • Loading branch information
snorecone committed Oct 20, 2016
1 parent 232d51c commit 6f32aec
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
14 changes: 8 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
language: go

go:
- tip

Expand All @@ -10,14 +9,17 @@ install:
script:
- make test

# This assumes that git tags start with "v", e.g. v0.19
before_deploy:
- make build
- PACKAGE_VERSION=${TRAVIS_TAG:1} make build

deploy:
deploy:
provider: releases
api_key: ${GITHUB_KEY}
file_glob: true
file: "pkg/remote_syslog*"
skip_cleanup: true
api_key:
secure: d3jdocN7D2L3I/Uwj2vIlMGId59zxi1UKxn3AsSC3WERbc9N0m781HmfJe5iD7GW7fp/os1kswb2mtGKLXluNliEOpYutOPlvtQNw8GyovNwK08aeyWm/+oxul36rLnAN81aPBAY11mKKaU0gJOv6Q79yq8ew6OY8D6UdZRyypY=
file: "pkg/remote_syslog*"
file_glob: true
on:
tags: true
condition: ${TRAVIS_TAG:0:1} = "v"
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@ depend:
@echo
@echo "\033[32mChecking Dependencies ----> \033[m"

ifndef PACKAGE_VERSION
@echo "\033[1;33mPACKAGE_VERSION is not set. In order to build a package I need PACKAGE_VERSION=n\033[m"
exit 1;
endif

ifndef GOPATH
@echo "\033[1;33mGOPATH is not set. This means that you do not have go setup properly on this machine\033[m"
@echo "$$ mkdir ~/gocode";
Expand Down
2 changes: 0 additions & 2 deletions packaging/Makefile.packaging
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
PACKAGE_VERSION := 0.19a
PACKAGE_NAME := remote_syslog2
PACKAGE_VENDOR := "Papertrail Inc."
PACKAGE_LICENSE := "MIT License"
PACKAGE_CONTACT := [email protected]
PACKAGE_DESCRIPTION := "Lightweight self-contained daemon for reading local files and emitting remote syslog (without using local syslog daemon)"
PACKAGE_URL := https://github.com/papertrail/remote_syslog2

0 comments on commit 6f32aec

Please sign in to comment.