From ac982790969f3bb8fc2d082dd0982bcf3b9cce01 Mon Sep 17 00:00:00 2001 From: Andreas Heim Date: Mon, 17 Jun 2019 12:08:56 -0400 Subject: [PATCH] Added Helm utility container --- helm/Dockerfile | 22 ++++++++++++++++++++++ helm/Makefile | 18 ++++++++++++++++++ helm/entrypoint.sh | 4 ++++ 3 files changed, 44 insertions(+) create mode 100644 helm/Dockerfile create mode 100644 helm/Makefile create mode 100755 helm/entrypoint.sh diff --git a/helm/Dockerfile b/helm/Dockerfile new file mode 100644 index 0000000..a60baa4 --- /dev/null +++ b/helm/Dockerfile @@ -0,0 +1,22 @@ +FROM gcr.io/cloud-builders/kubectl + +LABEL "name"="Helm" +LABEL "maintainer"="Unacast " +LABEL "version"="1.0.0" + +LABEL "com.github.actions.name"="Helm" +LABEL "com.github.actions.description"="Helm" +LABEL "com.github.actions.icon"="terminal" +LABEL "com.github.actions.color"="orange" + +ENV HELM_VERSION="v2.14.1" + +RUN curl -Lo /tmp/helm-linux-amd64.tar.gz https://storage.googleapis.com/kubernetes-helm/helm-${HELM_VERSION}-linux-amd64.tar.gz \ + && tar -xvf /tmp/helm-linux-amd64.tar.gz -C /tmp/ \ + && mv /tmp/linux-amd64/helm /usr/local/bin/ \ + && chmod +x /usr/local/bin/helm && rm -rf /tmp/linux-amd64 \ + && helm init --client-only + +COPY entrypoint.sh /entrypoint.sh +ENTRYPOINT ["/entrypoint.sh"] + diff --git a/helm/Makefile b/helm/Makefile new file mode 100644 index 0000000..ebce908 --- /dev/null +++ b/helm/Makefile @@ -0,0 +1,18 @@ +include ../docker.mk +include ../help.mk +include ../shell.mk + +.PHONY: clean +clean: ## Clean up after the build process. + +.PHONY: lint +lint: docker-lint ## Lint all of the files for this Action. + +.PHONY: build +build: docker-build ## Build this Action. + +.PHONY: test +test: ## Test the components of this Action. + +.PHONY: publish +publish: docker-publish ## Publish this Action. diff --git a/helm/entrypoint.sh b/helm/entrypoint.sh new file mode 100755 index 0000000..6c5c9ab --- /dev/null +++ b/helm/entrypoint.sh @@ -0,0 +1,4 @@ +#!/usr/bin/env bash +set -e + +sh -l -c "helm $*"