From da7fdbd02537ae61a014453562f004c28154c167 Mon Sep 17 00:00:00 2001 From: Mark DeNeve Date: Thu, 13 Dec 2018 20:00:05 -0800 Subject: [PATCH] Adding in a binary build process. This should start building and publishing the binaries to git. --- .goreleaser.yml | 17 ++++++++++++ .travis.yml | 3 +++ Gopkg.lock | 70 ++++++++++++++++++++++++++++++++++++++++++++----- 3 files changed, 84 insertions(+), 6 deletions(-) create mode 100644 .goreleaser.yml diff --git a/.goreleaser.yml b/.goreleaser.yml new file mode 100644 index 0000000..e6f3a96 --- /dev/null +++ b/.goreleaser.yml @@ -0,0 +1,17 @@ +# .goreleaser.yml +# Build customization +builds: + - main: ecs_exporter.go +binary: prometheus-emcecs-exporter +goos: +# This would probably work on windows and osx, but I have never tested it +# so I am not going to build the windows binaries unless someone opens a bug request +# - windows +# - darwin + - linux +goarch: + - amd64 + - arm64 +# Archive customization +archive: + format: tar.gz \ No newline at end of file diff --git a/.travis.yml b/.travis.yml index 338f44f..3b81e07 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,3 +10,6 @@ install: script: - make + +after_success: +- test -n "$TRAVIS_TAG" && curl -sL https://git.io/goreleaser | bash \ No newline at end of file diff --git a/Gopkg.lock b/Gopkg.lock index ea3a0a8..27c9d22 100644 --- a/Gopkg.lock +++ b/Gopkg.lock @@ -3,103 +3,161 @@ [[projects]] branch = "master" + digest = "1:a74730e052a45a3fab1d310fdef2ec17ae3d6af16228421e238320846f2aaec8" name = "github.com/alecthomas/template" - packages = [".","parse"] + packages = [ + ".", + "parse", + ] + pruneopts = "" revision = "a0175ee3bccc567396460bf5acd36800cb10c49c" [[projects]] branch = "master" + digest = "1:8483994d21404c8a1d489f6be756e25bfccd3b45d65821f25695577791a08e68" name = "github.com/alecthomas/units" packages = ["."] + pruneopts = "" revision = "2efee857e7cfd4f3d0138cc3cbb1b4966962b93a" [[projects]] branch = "master" + digest = "1:0c5485088ce274fac2e931c1b979f2619345097b39d91af3239977114adf0320" name = "github.com/beorn7/perks" packages = ["quantile"] + pruneopts = "" revision = "4c0e84591b9aa9e6dcfdf3e020114cd81f89d5f9" [[projects]] branch = "master" + digest = "1:3b760d3b93f994df8eb1d9ebfad17d3e9e37edcb7f7efaa15b427c0d7a64f4e4" name = "github.com/golang/protobuf" packages = ["proto"] + pruneopts = "" revision = "1e59b77b52bf8e4b449a57e6f79f21226d571845" [[projects]] + digest = "1:0864d42ca6c9c1a33f35fc0b55c194207ad50ef11bfb748449381dcab5c8eb81" name = "github.com/jamiealquiza/envy" packages = ["."] + pruneopts = "" revision = "0bbd0e6a316f4aedb2fcb3eaaabd3e89d88d606f" version = "v1.0.0" [[projects]] + digest = "1:4c23ced97a470b17d9ffd788310502a077b9c1f60221a85563e49696276b4147" name = "github.com/matttproud/golang_protobuf_extensions" packages = ["pbutil"] + pruneopts = "" revision = "3247c84500bff8d9fb6d579d800f20b3e091582c" version = "v1.0.0" [[projects]] + digest = "1:4142d94383572e74b42352273652c62afec5b23f325222ed09198f46009022d1" name = "github.com/prometheus/client_golang" - packages = ["prometheus","prometheus/promhttp"] + packages = [ + "prometheus", + "prometheus/promhttp", + ] + pruneopts = "" revision = "c5b7fccd204277076155f10851dad72b76a49317" version = "v0.8.0" [[projects]] branch = "master" + digest = "1:60aca47f4eeeb972f1b9da7e7db51dee15ff6c59f7b401c1588b8e6771ba15ef" name = "github.com/prometheus/client_model" packages = ["go"] + pruneopts = "" revision = "99fa1f4be8e564e8a6b613da7fa6f46c9edafc6c" [[projects]] branch = "master" + digest = "1:e3aa5178be4fc4ae8cdb37d11c02f7490c00450a9f419e6aa84d02d3b47e90d2" name = "github.com/prometheus/common" - packages = ["expfmt","internal/bitbucket.org/ww/goautoneg","log","model"] + packages = [ + "expfmt", + "internal/bitbucket.org/ww/goautoneg", + "log", + "model", + ] + pruneopts = "" revision = "2e54d0b93cba2fd133edc32211dcc32c06ef72ca" [[projects]] branch = "master" + digest = "1:a6a85fc81f2a06ccac3d45005523afbeee45138d781d4f3cb7ad9889d5c65aab" name = "github.com/prometheus/procfs" - packages = [".","xfs"] + packages = [ + ".", + "xfs", + ] + pruneopts = "" revision = "a6e9df898b1336106c743392c48ee0b71f5c4efa" [[projects]] + digest = "1:3ac248add5bb40a3c631c5334adcd09aa72d15af2768a5bc0274084ea7b2e5ba" name = "github.com/sirupsen/logrus" packages = ["."] + pruneopts = "" revision = "f006c2ac4710855cf0f916dd6b77acf6b048dc6e" version = "v1.0.3" [[projects]] + digest = "1:1623b86e39895bac54bc6ce62915cd75dec7e0ce021562a482fa645edd1db606" name = "github.com/tidwall/gjson" packages = ["."] + pruneopts = "" revision = "182ad7605048a24cd37115b7157b8a4436d9ea17" version = "v1.0.3" [[projects]] branch = "master" + digest = "1:4db4f92bb9cb04cfc4fccb36aba2598b02a988008c4cc0692b241214ad8ac96e" name = "github.com/tidwall/match" packages = ["."] + pruneopts = "" revision = "1731857f09b1f38450e2c12409748407822dc6be" [[projects]] branch = "master" + digest = "1:c3415eeb330bf30a2d8181e516ec79804c198f3d171ab9c9364f29dbe76c05d9" name = "golang.org/x/crypto" packages = ["ssh/terminal"] + pruneopts = "" revision = "94eea52f7b742c7cbe0b03b22f0c4c8631ece122" [[projects]] branch = "master" + digest = "1:a52cd7f8c2bbc247318084baffb4ea34754945c4f85fbf42c0bfcebf27704c52" name = "golang.org/x/sys" - packages = ["unix","windows","windows/registry","windows/svc/eventlog"] + packages = [ + "unix", + "windows", + "windows/registry", + "windows/svc/eventlog", + ] + pruneopts = "" revision = "8b4580aae2a0dd0c231a45d3ccb8434ff533b840" [[projects]] + digest = "1:7dc69d1597e4773ec5f64e5c078d55f0f011bb05ec0435346d0649ad978a23fd" name = "gopkg.in/alecthomas/kingpin.v2" packages = ["."] + pruneopts = "" revision = "1087e65c9441605df944fb12c33f0fe7072d18ca" version = "v2.2.5" [solve-meta] analyzer-name = "dep" analyzer-version = 1 - inputs-digest = "01c40da76aa1dd804d2888333b9965e0b65c7444b29ebacb9476f938c28bd75c" + input-imports = [ + "github.com/jamiealquiza/envy", + "github.com/prometheus/client_golang/prometheus", + "github.com/prometheus/client_golang/prometheus/promhttp", + "github.com/prometheus/common/log", + "github.com/sirupsen/logrus", + "github.com/tidwall/gjson", + ] solver-name = "gps-cdcl" solver-version = 1