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
pull/11137/head
AJ Bond 2019-01-16 11:11:37 -05:00
parent 1f86c197b6
commit e54b71f6e4
2 changed files with 9 additions and 6 deletions

View File

@ -49,12 +49,13 @@ s3:
folder: "platform/nightlies/" folder: "platform/nightlies/"
dockers: dockers:
- - goos: linux
goarch: amd64
binaries: binaries:
- influxd - influxd
- influx - influx
image_templates: image_templates:
- quay.io/influxdb/influx - 'quay.io/influxdb/influx:{{ .Version }}'
dockerfile: docker/influxd/Dockerfile dockerfile: docker/influxd/Dockerfile
extra_files: extra_files:
- docker/influxd/entrypoint.sh - docker/influxd/entrypoint.sh
@ -62,4 +63,3 @@ dockers:
# Do not make github release # Do not make github release
release: release:
disable: true disable: true

View File

@ -119,6 +119,9 @@ bench:
build: all build: all
dist:
$(GO_RUN) github.com/goreleaser/goreleaser --snapshot --rm-dist
nightly: nightly:
$(GO_RUN) github.com/goreleaser/goreleaser --snapshot --rm-dist --publish-snapshots $(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 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