You've already forked helm-docker
Compare commits
8 Commits
93fbf00b17
...
v3.8.1
| Author | SHA1 | Date | |
|---|---|---|---|
|
82058c1b30
|
|||
| 4c77747a2c | |||
| acd9f0d686 | |||
| 19a7d4a67e | |||
|
e2eb729cec
|
|||
|
46a766bbfb
|
|||
|
7408a66044
|
|||
|
87b7296618
|
74
.drone.yml
74
.drone.yml
@@ -10,7 +10,7 @@ steps:
|
||||
- name: markdown lint
|
||||
commands:
|
||||
- markdownlint *.md
|
||||
image: docker.io/volkerraschek/markdownlint:0.30.0
|
||||
image: docker.io/volkerraschek/markdownlint:0.31.1
|
||||
resources:
|
||||
limits:
|
||||
cpu: 50
|
||||
@@ -54,16 +54,18 @@ steps:
|
||||
- name: build
|
||||
image: plugins/docker
|
||||
settings:
|
||||
dockerfile: Dockerfile
|
||||
auto_tag: false
|
||||
dockerfile: Dockerfile
|
||||
dry_run: true
|
||||
tags: latest-amd64
|
||||
force_tag: true
|
||||
no_cache: true
|
||||
purge: true
|
||||
repo: volkerraschek/helm
|
||||
tags: latest-amd64
|
||||
username:
|
||||
from_secret: container_image_registry_user
|
||||
password:
|
||||
from_secret: container_image_registry_password
|
||||
no_cache: true
|
||||
volumes:
|
||||
- name: docker_socket
|
||||
path: /var/run/docker.sock
|
||||
@@ -115,16 +117,18 @@ steps:
|
||||
- name: build
|
||||
image: plugins/docker
|
||||
settings:
|
||||
dockerfile: Dockerfile
|
||||
auto_tag: false
|
||||
dockerfile: Dockerfile
|
||||
dry_run: true
|
||||
tags: latest-arm-v7
|
||||
force_tag: true
|
||||
no_cache: true
|
||||
purge: true
|
||||
repo: volkerraschek/helm
|
||||
tags: latest-arm-v7
|
||||
username:
|
||||
from_secret: container_image_registry_user
|
||||
password:
|
||||
from_secret: container_image_registry_password
|
||||
no_cache: true
|
||||
|
||||
- name: notify
|
||||
image: drillster/drone-email
|
||||
@@ -176,16 +180,18 @@ steps:
|
||||
- name: build
|
||||
image: plugins/docker
|
||||
settings:
|
||||
dockerfile: Dockerfile
|
||||
auto_tag: false
|
||||
dockerfile: Dockerfile
|
||||
dry_run: true
|
||||
tags: latest-arm64-v8
|
||||
force_tag: true
|
||||
no_cache: true
|
||||
purge: true
|
||||
repo: volkerraschek/helm
|
||||
tags: latest-arm64-v8
|
||||
username:
|
||||
from_secret: container_image_registry_user
|
||||
password:
|
||||
from_secret: container_image_registry_password
|
||||
no_cache: true
|
||||
|
||||
- name: notify
|
||||
image: drillster/drone-email
|
||||
@@ -237,15 +243,17 @@ steps:
|
||||
- name: build
|
||||
image: plugins/docker
|
||||
settings:
|
||||
dockerfile: Dockerfile
|
||||
auto_tag: false
|
||||
tags: latest-amd64
|
||||
dockerfile: Dockerfile
|
||||
force_tag: true
|
||||
no_cache: true
|
||||
purge: true
|
||||
repo: volkerraschek/helm
|
||||
tags: latest-amd64
|
||||
username:
|
||||
from_secret: container_image_registry_user
|
||||
password:
|
||||
from_secret: container_image_registry_password
|
||||
no_cache: true
|
||||
volumes:
|
||||
- name: docker_socket
|
||||
path: /var/run/docker.sock
|
||||
@@ -296,15 +304,17 @@ steps:
|
||||
- name: build
|
||||
image: plugins/docker
|
||||
settings:
|
||||
dockerfile: Dockerfile
|
||||
auto_tag: false
|
||||
tags: latest-arm-v7
|
||||
dockerfile: Dockerfile
|
||||
force_tag: true
|
||||
no_cache: true
|
||||
purge: true
|
||||
repo: volkerraschek/helm
|
||||
tags: latest-arm-v7
|
||||
username:
|
||||
from_secret: container_image_registry_user
|
||||
password:
|
||||
from_secret: container_image_registry_password
|
||||
no_cache: true
|
||||
|
||||
- name: notify
|
||||
image: drillster/drone-email
|
||||
@@ -355,15 +365,17 @@ steps:
|
||||
- name: build
|
||||
image: plugins/docker
|
||||
settings:
|
||||
dockerfile: Dockerfile
|
||||
auto_tag: false
|
||||
tags: latest-arm64-v8
|
||||
dockerfile: Dockerfile
|
||||
force_tag: true
|
||||
no_cache: true
|
||||
purge: true
|
||||
repo: volkerraschek/helm
|
||||
tags: latest-arm64-v8
|
||||
username:
|
||||
from_secret: container_image_registry_user
|
||||
password:
|
||||
from_secret: container_image_registry_password
|
||||
no_cache: true
|
||||
|
||||
- name: notify
|
||||
image: drillster/drone-email
|
||||
@@ -465,9 +477,12 @@ steps:
|
||||
- name: build
|
||||
image: plugins/docker
|
||||
settings:
|
||||
dockerfile: Dockerfile
|
||||
auto_tag: true
|
||||
auto_tag_suffix: amd64
|
||||
auto_tag: true
|
||||
dockerfile: Dockerfile
|
||||
force_tag: true
|
||||
no_cache: true
|
||||
purge: true
|
||||
repo: volkerraschek/helm
|
||||
username:
|
||||
from_secret: container_image_registry_user
|
||||
@@ -475,7 +490,6 @@ steps:
|
||||
from_secret: container_image_registry_password
|
||||
build_args:
|
||||
- HELM_VERSION=${DRONE_TAG}
|
||||
no_cache: true
|
||||
volumes:
|
||||
- name: docker_socket
|
||||
path: /var/run/docker.sock
|
||||
@@ -520,9 +534,12 @@ steps:
|
||||
- name: build
|
||||
image: plugins/docker
|
||||
settings:
|
||||
dockerfile: Dockerfile
|
||||
auto_tag: true
|
||||
auto_tag_suffix: arm-v7
|
||||
auto_tag: true
|
||||
dockerfile: Dockerfile
|
||||
force_tag: true
|
||||
no_cache: true
|
||||
purge: true
|
||||
repo: volkerraschek/helm
|
||||
username:
|
||||
from_secret: container_image_registry_user
|
||||
@@ -530,7 +547,6 @@ steps:
|
||||
from_secret: container_image_registry_password
|
||||
build_args:
|
||||
- HELM_VERSION=${DRONE_TAG}
|
||||
no_cache: true
|
||||
volumes:
|
||||
- name: docker_socket
|
||||
path: /var/run/docker.sock
|
||||
@@ -575,9 +591,12 @@ steps:
|
||||
- name: build
|
||||
image: plugins/docker
|
||||
settings:
|
||||
dockerfile: Dockerfile
|
||||
auto_tag: true
|
||||
auto_tag_suffix: arm64-v8
|
||||
auto_tag: true
|
||||
dockerfile: Dockerfile
|
||||
force_tag: true
|
||||
no_cache: true
|
||||
purge: true
|
||||
repo: volkerraschek/helm
|
||||
username:
|
||||
from_secret: container_image_registry_user
|
||||
@@ -585,7 +604,6 @@ steps:
|
||||
from_secret: container_image_registry_password
|
||||
build_args:
|
||||
- HELM_VERSION=${DRONE_TAG}
|
||||
no_cache: true
|
||||
volumes:
|
||||
- name: docker_socket
|
||||
path: /var/run/docker.sock
|
||||
|
||||
14
Dockerfile
14
Dockerfile
@@ -2,7 +2,15 @@ FROM docker.io/library/alpine:3.15
|
||||
|
||||
ARG HELM_VERSION
|
||||
|
||||
COPY install.sh /install.sh
|
||||
RUN VERSION=${HELM_VERSION} /install.sh
|
||||
RUN apk add bash curl git openssl && \
|
||||
curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 --output /tmp/install.sh
|
||||
|
||||
ENTRYPOINT [ "/usr/bin/helm" ]
|
||||
RUN [[ ${HELM_VERSION} == "" ]]; bash /tmp/install.sh
|
||||
RUN [[ ${HELM_VERSION} != "" ]]; bash /tmp/install.sh --version ${HELM_VERSION}
|
||||
|
||||
RUN rm /tmp/install.sh
|
||||
|
||||
# Install additionally cm-push plugin
|
||||
RUN helm plugin install https://github.com/chartmuseum/helm-push.git
|
||||
|
||||
ENTRYPOINT [ "/usr/local/bin/helm" ]
|
||||
|
||||
2
Makefile
2
Makefile
@@ -1,6 +1,6 @@
|
||||
# HELM_VERSION
|
||||
# Only required to install a specifiy version
|
||||
HELM_VERSION?=v3.8.0 # renovate: datasource=github-releases depName=helm lookupName=helm/helm versioning=semver
|
||||
HELM_VERSION?=v3.8.1 # renovate: datasource=github-releases depName=helm lookupName=helm/helm versioning=semver
|
||||
|
||||
# CONTAINER_RUNTIME
|
||||
# The CONTAINER_RUNTIME variable will be used to specified the path to a
|
||||
|
||||
38
install.sh
38
install.sh
@@ -1,38 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -xe
|
||||
|
||||
BASE_URL=https://get.helm.sh
|
||||
|
||||
if [ -z ${VERSION+x} ]; then
|
||||
echo ${VERSION} not defined
|
||||
exit 1
|
||||
fi
|
||||
|
||||
case `uname -m` in
|
||||
x86_64)
|
||||
ARCH=amd64
|
||||
;;
|
||||
armv7l)
|
||||
ARCH=arm
|
||||
;;
|
||||
aarch64)
|
||||
ARCH=arm64
|
||||
;;
|
||||
ppc64le)
|
||||
ARCH=ppc64le
|
||||
;;
|
||||
s390x)
|
||||
ARCH=s390x
|
||||
;;
|
||||
*)
|
||||
echo "un-supported arch, exit ..."
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
apk add --update --no-cache wget git
|
||||
wget ${BASE_URL}/helm-${VERSION}-linux-${ARCH}.tar.gz -O - | tar -xz
|
||||
mv linux-${ARCH}/helm /usr/bin/helm
|
||||
chmod +x /usr/bin/helm
|
||||
rm -rf linux-${ARCH}
|
||||
Reference in New Issue
Block a user