From ffa98fdbdda2c94cce64cddb3f2594257bb2ab26 Mon Sep 17 00:00:00 2001 From: rob boll Date: Tue, 22 Nov 2016 21:30:25 -0500 Subject: [PATCH] build: add container distribution --- Dockerfile | 3 +++ Makefile | 6 ++++++ README.md | 4 +++- circle.yml | 2 +- 4 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..088185fe --- /dev/null +++ b/Dockerfile @@ -0,0 +1,3 @@ +FROM alpine:3.4 + +COPY dist/helmfile_linux_amd64 /helmfile diff --git a/Makefile b/Makefile index f2000800..1b517df7 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/README.md b/README.md index 7bfbbf0f..75855ddb 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/circle.yml b/circle.yml index 84853a01..82070916 100644 --- a/circle.yml +++ b/circle.yml @@ -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