From e54b71f6e40edd7bc3228b8884a6f0bff6a8a9fd Mon Sep 17 00:00:00 2001 From: AJ Bond Date: Wed, 16 Jan 2019 11:11:37 -0500 Subject: [PATCH] chore(image):Set image tag to version By default goreleaser will set the image tag to latest. Include the .Version template variable to allow for nightly tags --- .goreleaser.yml | 10 +++++----- Makefile | 5 ++++- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index cedfb9dff8..aaa2f4cd73 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -49,12 +49,13 @@ s3: folder: "platform/nightlies/" dockers: - - + - goos: linux + goarch: amd64 binaries: - - influxd - - influx + - influxd + - influx image_templates: - - quay.io/influxdb/influx + - 'quay.io/influxdb/influx:{{ .Version }}' dockerfile: docker/influxd/Dockerfile extra_files: - docker/influxd/entrypoint.sh @@ -62,4 +63,3 @@ dockers: # Do not make github release release: disable: true - diff --git a/Makefile b/Makefile index 9d07de3a97..bb3fe5789e 100644 --- a/Makefile +++ b/Makefile @@ -119,6 +119,9 @@ bench: build: all +dist: + $(GO_RUN) github.com/goreleaser/goreleaser --snapshot --rm-dist + nightly: $(GO_RUN) github.com/goreleaser/goreleaser --snapshot --rm-dist --publish-snapshots @@ -149,4 +152,4 @@ run: chronogiraffe # .PHONY targets represent actions that do not create an actual file. -.PHONY: all subdirs $(SUBDIRS) run fmt checkfmt tidy checktidy checkgenerate test test-go test-js test-go-race bench clean node_modules vet nightly chronogiraffe +.PHONY: all subdirs $(SUBDIRS) run fmt checkfmt tidy checktidy checkgenerate test test-go test-js test-go-race bench clean node_modules vet nightly chronogiraffe dist