mirror of
https://github.com/zhigang1992/actions.git
synced 2026-01-12 08:53:47 +08:00
Added Helm utility container
This commit is contained in:
22
helm/Dockerfile
Normal file
22
helm/Dockerfile
Normal 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
18
helm/Makefile
Normal 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
4
helm/entrypoint.sh
Executable file
@@ -0,0 +1,4 @@
|
||||
#!/usr/bin/env bash
|
||||
set -e
|
||||
|
||||
sh -l -c "helm $*"
|
||||
Reference in New Issue
Block a user