Added Helm utility container

This commit is contained in:
Andreas Heim
2019-06-17 12:08:56 -04:00
parent 5ab2c6f6da
commit ac98279096
3 changed files with 44 additions and 0 deletions

22
helm/Dockerfile Normal file
View File

@@ -0,0 +1,22 @@
FROM gcr.io/cloud-builders/kubectl
LABEL "name"="Helm"
LABEL "maintainer"="Unacast <developers+github@unacast.com>"
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"]

18
helm/Makefile Normal file
View File

@@ -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.

4
helm/entrypoint.sh Executable file
View File

@@ -0,0 +1,4 @@
#!/usr/bin/env bash
set -e
sh -l -c "helm $*"