Compare commits
No commits in common. "acd9f0d686f33537caaf75bb9b1c2f9e82d7d987" and "93fbf00b1758d40dc439a725e970dd19079ed336" have entirely different histories.
acd9f0d686
...
93fbf00b17
72
.drone.yml
72
.drone.yml
@ -54,18 +54,16 @@ steps:
|
|||||||
- name: build
|
- name: build
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
settings:
|
settings:
|
||||||
auto_tag: false
|
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
|
auto_tag: false
|
||||||
dry_run: true
|
dry_run: true
|
||||||
force_tag: true
|
|
||||||
no_cache: true
|
|
||||||
purge: true
|
|
||||||
repo: volkerraschek/helm
|
|
||||||
tags: latest-amd64
|
tags: latest-amd64
|
||||||
|
repo: volkerraschek/helm
|
||||||
username:
|
username:
|
||||||
from_secret: container_image_registry_user
|
from_secret: container_image_registry_user
|
||||||
password:
|
password:
|
||||||
from_secret: container_image_registry_password
|
from_secret: container_image_registry_password
|
||||||
|
no_cache: true
|
||||||
volumes:
|
volumes:
|
||||||
- name: docker_socket
|
- name: docker_socket
|
||||||
path: /var/run/docker.sock
|
path: /var/run/docker.sock
|
||||||
@ -117,18 +115,16 @@ steps:
|
|||||||
- name: build
|
- name: build
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
settings:
|
settings:
|
||||||
auto_tag: false
|
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
|
auto_tag: false
|
||||||
dry_run: true
|
dry_run: true
|
||||||
force_tag: true
|
|
||||||
no_cache: true
|
|
||||||
purge: true
|
|
||||||
repo: volkerraschek/helm
|
|
||||||
tags: latest-arm-v7
|
tags: latest-arm-v7
|
||||||
|
repo: volkerraschek/helm
|
||||||
username:
|
username:
|
||||||
from_secret: container_image_registry_user
|
from_secret: container_image_registry_user
|
||||||
password:
|
password:
|
||||||
from_secret: container_image_registry_password
|
from_secret: container_image_registry_password
|
||||||
|
no_cache: true
|
||||||
|
|
||||||
- name: notify
|
- name: notify
|
||||||
image: drillster/drone-email
|
image: drillster/drone-email
|
||||||
@ -180,18 +176,16 @@ steps:
|
|||||||
- name: build
|
- name: build
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
settings:
|
settings:
|
||||||
auto_tag: false
|
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
|
auto_tag: false
|
||||||
dry_run: true
|
dry_run: true
|
||||||
force_tag: true
|
|
||||||
no_cache: true
|
|
||||||
purge: true
|
|
||||||
repo: volkerraschek/helm
|
|
||||||
tags: latest-arm64-v8
|
tags: latest-arm64-v8
|
||||||
|
repo: volkerraschek/helm
|
||||||
username:
|
username:
|
||||||
from_secret: container_image_registry_user
|
from_secret: container_image_registry_user
|
||||||
password:
|
password:
|
||||||
from_secret: container_image_registry_password
|
from_secret: container_image_registry_password
|
||||||
|
no_cache: true
|
||||||
|
|
||||||
- name: notify
|
- name: notify
|
||||||
image: drillster/drone-email
|
image: drillster/drone-email
|
||||||
@ -243,17 +237,15 @@ steps:
|
|||||||
- name: build
|
- name: build
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
settings:
|
settings:
|
||||||
auto_tag: false
|
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
force_tag: true
|
auto_tag: false
|
||||||
no_cache: true
|
|
||||||
purge: true
|
|
||||||
repo: volkerraschek/helm
|
|
||||||
tags: latest-amd64
|
tags: latest-amd64
|
||||||
|
repo: volkerraschek/helm
|
||||||
username:
|
username:
|
||||||
from_secret: container_image_registry_user
|
from_secret: container_image_registry_user
|
||||||
password:
|
password:
|
||||||
from_secret: container_image_registry_password
|
from_secret: container_image_registry_password
|
||||||
|
no_cache: true
|
||||||
volumes:
|
volumes:
|
||||||
- name: docker_socket
|
- name: docker_socket
|
||||||
path: /var/run/docker.sock
|
path: /var/run/docker.sock
|
||||||
@ -304,17 +296,15 @@ steps:
|
|||||||
- name: build
|
- name: build
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
settings:
|
settings:
|
||||||
auto_tag: false
|
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
force_tag: true
|
auto_tag: false
|
||||||
no_cache: true
|
|
||||||
purge: true
|
|
||||||
repo: volkerraschek/helm
|
|
||||||
tags: latest-arm-v7
|
tags: latest-arm-v7
|
||||||
|
repo: volkerraschek/helm
|
||||||
username:
|
username:
|
||||||
from_secret: container_image_registry_user
|
from_secret: container_image_registry_user
|
||||||
password:
|
password:
|
||||||
from_secret: container_image_registry_password
|
from_secret: container_image_registry_password
|
||||||
|
no_cache: true
|
||||||
|
|
||||||
- name: notify
|
- name: notify
|
||||||
image: drillster/drone-email
|
image: drillster/drone-email
|
||||||
@ -365,17 +355,15 @@ steps:
|
|||||||
- name: build
|
- name: build
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
settings:
|
settings:
|
||||||
auto_tag: false
|
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
force_tag: true
|
auto_tag: false
|
||||||
no_cache: true
|
|
||||||
purge: true
|
|
||||||
repo: volkerraschek/helm
|
|
||||||
tags: latest-arm64-v8
|
tags: latest-arm64-v8
|
||||||
|
repo: volkerraschek/helm
|
||||||
username:
|
username:
|
||||||
from_secret: container_image_registry_user
|
from_secret: container_image_registry_user
|
||||||
password:
|
password:
|
||||||
from_secret: container_image_registry_password
|
from_secret: container_image_registry_password
|
||||||
|
no_cache: true
|
||||||
|
|
||||||
- name: notify
|
- name: notify
|
||||||
image: drillster/drone-email
|
image: drillster/drone-email
|
||||||
@ -477,12 +465,9 @@ steps:
|
|||||||
- name: build
|
- name: build
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
settings:
|
settings:
|
||||||
auto_tag_suffix: amd64
|
|
||||||
auto_tag: true
|
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
force_tag: true
|
auto_tag: true
|
||||||
no_cache: true
|
auto_tag_suffix: amd64
|
||||||
purge: true
|
|
||||||
repo: volkerraschek/helm
|
repo: volkerraschek/helm
|
||||||
username:
|
username:
|
||||||
from_secret: container_image_registry_user
|
from_secret: container_image_registry_user
|
||||||
@ -490,6 +475,7 @@ steps:
|
|||||||
from_secret: container_image_registry_password
|
from_secret: container_image_registry_password
|
||||||
build_args:
|
build_args:
|
||||||
- HELM_VERSION=${DRONE_TAG}
|
- HELM_VERSION=${DRONE_TAG}
|
||||||
|
no_cache: true
|
||||||
volumes:
|
volumes:
|
||||||
- name: docker_socket
|
- name: docker_socket
|
||||||
path: /var/run/docker.sock
|
path: /var/run/docker.sock
|
||||||
@ -534,12 +520,9 @@ steps:
|
|||||||
- name: build
|
- name: build
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
settings:
|
settings:
|
||||||
auto_tag_suffix: arm-v7
|
|
||||||
auto_tag: true
|
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
force_tag: true
|
auto_tag: true
|
||||||
no_cache: true
|
auto_tag_suffix: arm-v7
|
||||||
purge: true
|
|
||||||
repo: volkerraschek/helm
|
repo: volkerraschek/helm
|
||||||
username:
|
username:
|
||||||
from_secret: container_image_registry_user
|
from_secret: container_image_registry_user
|
||||||
@ -547,6 +530,7 @@ steps:
|
|||||||
from_secret: container_image_registry_password
|
from_secret: container_image_registry_password
|
||||||
build_args:
|
build_args:
|
||||||
- HELM_VERSION=${DRONE_TAG}
|
- HELM_VERSION=${DRONE_TAG}
|
||||||
|
no_cache: true
|
||||||
volumes:
|
volumes:
|
||||||
- name: docker_socket
|
- name: docker_socket
|
||||||
path: /var/run/docker.sock
|
path: /var/run/docker.sock
|
||||||
@ -591,12 +575,9 @@ steps:
|
|||||||
- name: build
|
- name: build
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
settings:
|
settings:
|
||||||
auto_tag_suffix: arm64-v8
|
|
||||||
auto_tag: true
|
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
force_tag: true
|
auto_tag: true
|
||||||
no_cache: true
|
auto_tag_suffix: arm64-v8
|
||||||
purge: true
|
|
||||||
repo: volkerraschek/helm
|
repo: volkerraschek/helm
|
||||||
username:
|
username:
|
||||||
from_secret: container_image_registry_user
|
from_secret: container_image_registry_user
|
||||||
@ -604,6 +585,7 @@ steps:
|
|||||||
from_secret: container_image_registry_password
|
from_secret: container_image_registry_password
|
||||||
build_args:
|
build_args:
|
||||||
- HELM_VERSION=${DRONE_TAG}
|
- HELM_VERSION=${DRONE_TAG}
|
||||||
|
no_cache: true
|
||||||
volumes:
|
volumes:
|
||||||
- name: docker_socket
|
- name: docker_socket
|
||||||
path: /var/run/docker.sock
|
path: /var/run/docker.sock
|
||||||
|
14
Dockerfile
14
Dockerfile
@ -2,15 +2,7 @@ FROM docker.io/library/alpine:3.15
|
|||||||
|
|
||||||
ARG HELM_VERSION
|
ARG HELM_VERSION
|
||||||
|
|
||||||
RUN apk add bash curl git openssl && \
|
COPY install.sh /install.sh
|
||||||
curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 --output /tmp/install.sh
|
RUN VERSION=${HELM_VERSION} /install.sh
|
||||||
|
|
||||||
RUN [[ ${HELM_VERSION} == "" ]]; bash /tmp/install.sh
|
ENTRYPOINT [ "/usr/bin/helm" ]
|
||||||
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
@ -49,4 +49,4 @@ container-image/push:
|
|||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
# Declare the contents of the PHONY variable as phony. We keep that information
|
# Declare the contents of the PHONY variable as phony. We keep that information
|
||||||
# in a variable so we can use it in if_changed.
|
# in a variable so we can use it in if_changed.
|
||||||
.PHONY: ${PHONY}
|
.PHONY: ${PHONY}
|
38
install.sh
Executable file
38
install.sh
Executable file
@ -0,0 +1,38 @@
|
|||||||
|
#!/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}
|
Loading…
x
Reference in New Issue
Block a user