build: add container distribution

This commit is contained in:
rob boll 2016-11-22 21:30:25 -05:00
parent 9700e05908
commit ffa98fdbdd
4 changed files with 13 additions and 2 deletions

3
Dockerfile Normal file
View File

@ -0,0 +1,3 @@
FROM alpine:3.4
COPY dist/helmfile_linux_amd64 /helmfile

View File

@ -33,6 +33,12 @@ release: pristine cross
@ghr -b ${BODY} -t ${GITHUB_TOKEN} -u ${ORG} -replace ${TAG} dist
.PHONY: release
image: cross
docker build -t quay.io/roboll/helmfile:${TAG} .
push: image
docker push quay.io/roboll/helmfile:${TAG}
tools:
go get -u github.com/roboll/ghr github.com/mitchellh/gox
.PHONY: tools

View File

@ -2,6 +2,8 @@
Deploy Kubernetes Helm Charts
[![Docker Repository on Quay](https://quay.io/repository/roboll/helmfile/status "Docker Repository on Quay")](https://quay.io/repository/roboll/helmfile)
## about
Helmfile is a declarative spec for deploying helm charts. It lets you...
@ -32,7 +34,7 @@ charts:
## install
`go get github.com/roboll/helmfile` or from [releases](https://github.com/roboll/helmfile/releases).
`go get github.com/roboll/helmfile` or [releases](https://github.com/roboll/helmfile/releases) or [container](https://quay.io/roboll/helmfile)
## usage

View File

@ -28,4 +28,4 @@ deployment:
tag: /v.*/
commands:
- cd "$WORK" && make tools
- cd "$WORK" && BUILD_URL="$CIRCLE_BUILD_URL" make release
- cd "$WORK" && BUILD_URL="$CIRCLE_BUILD_URL" make push release