You've already forked helm-docker
Compare commits
23 Commits
93fbf00b17
...
v3.9.2
| Author | SHA1 | Date | |
|---|---|---|---|
| cfea6146af | |||
| 82b29f2fe2 | |||
| ede4e04b5b | |||
| 733f0d32c6 | |||
| b45bc96c1c | |||
| 3a59159952 | |||
| 3975c50d29 | |||
|
71b37676d1
|
|||
|
109f7300c6
|
|||
| d8271a003f | |||
| 5ec5f7333d | |||
| f94e2dc770 | |||
| 142144ecf5 | |||
|
dffd6eb068
|
|||
|
ff5b969f5f
|
|||
|
82058c1b30
|
|||
| 4c77747a2c | |||
| acd9f0d686 | |||
| 19a7d4a67e | |||
|
e2eb729cec
|
|||
|
46a766bbfb
|
|||
|
7408a66044
|
|||
|
87b7296618
|
185
.drone.yml
185
.drone.yml
@@ -10,11 +10,11 @@ steps:
|
|||||||
- name: markdown lint
|
- name: markdown lint
|
||||||
commands:
|
commands:
|
||||||
- markdownlint *.md
|
- markdownlint *.md
|
||||||
image: docker.io/volkerraschek/markdownlint:0.30.0
|
image: docker.io/volkerraschek/markdownlint:0.32.0
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
cpu: 50
|
cpu: 150
|
||||||
memory: 50M
|
memory: 150M
|
||||||
|
|
||||||
- name: email-notification
|
- name: email-notification
|
||||||
environment:
|
environment:
|
||||||
@@ -29,8 +29,8 @@ steps:
|
|||||||
image: docker.io/drillster/drone-email:latest
|
image: docker.io/drillster/drone-email:latest
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
cpu: 50
|
cpu: 150
|
||||||
memory: 25M
|
memory: 150M
|
||||||
when:
|
when:
|
||||||
status:
|
status:
|
||||||
- changed
|
- changed
|
||||||
@@ -52,24 +52,26 @@ platform:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: build
|
- name: build
|
||||||
image: plugins/docker
|
image: docker.io/plugins/docker:latest
|
||||||
settings:
|
settings:
|
||||||
dockerfile: Dockerfile
|
|
||||||
auto_tag: false
|
auto_tag: false
|
||||||
|
dockerfile: Dockerfile
|
||||||
dry_run: true
|
dry_run: true
|
||||||
tags: latest-amd64
|
force_tag: true
|
||||||
|
no_cache: true
|
||||||
|
purge: true
|
||||||
repo: volkerraschek/helm
|
repo: volkerraschek/helm
|
||||||
|
tags: latest-amd64
|
||||||
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
|
||||||
|
|
||||||
- name: notify
|
- name: notify
|
||||||
image: drillster/drone-email
|
image: docker.io/drillster/drone-email:latest
|
||||||
environment:
|
environment:
|
||||||
PLUGIN_HOST:
|
PLUGIN_HOST:
|
||||||
from_secret: smtp_host
|
from_secret: smtp_host
|
||||||
@@ -113,21 +115,23 @@ platform:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: build
|
- name: build
|
||||||
image: plugins/docker
|
image: docker.io/plugins/docker:latest
|
||||||
settings:
|
settings:
|
||||||
dockerfile: Dockerfile
|
|
||||||
auto_tag: false
|
auto_tag: false
|
||||||
|
dockerfile: Dockerfile
|
||||||
dry_run: true
|
dry_run: true
|
||||||
tags: latest-arm-v7
|
force_tag: true
|
||||||
|
no_cache: true
|
||||||
|
purge: true
|
||||||
repo: volkerraschek/helm
|
repo: volkerraschek/helm
|
||||||
|
tags: latest-arm-v7
|
||||||
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: docker.io/drillster/drone-email:latest
|
||||||
environment:
|
environment:
|
||||||
PLUGIN_HOST:
|
PLUGIN_HOST:
|
||||||
from_secret: smtp_host
|
from_secret: smtp_host
|
||||||
@@ -174,21 +178,23 @@ platform:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: build
|
- name: build
|
||||||
image: plugins/docker
|
image: docker.io/plugins/docker:latest
|
||||||
settings:
|
settings:
|
||||||
dockerfile: Dockerfile
|
|
||||||
auto_tag: false
|
auto_tag: false
|
||||||
|
dockerfile: Dockerfile
|
||||||
dry_run: true
|
dry_run: true
|
||||||
tags: latest-arm64-v8
|
force_tag: true
|
||||||
|
no_cache: true
|
||||||
|
purge: true
|
||||||
repo: volkerraschek/helm
|
repo: volkerraschek/helm
|
||||||
|
tags: latest-arm64-v8
|
||||||
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: docker.io/drillster/drone-email:latest
|
||||||
environment:
|
environment:
|
||||||
PLUGIN_HOST:
|
PLUGIN_HOST:
|
||||||
from_secret: smtp_host
|
from_secret: smtp_host
|
||||||
@@ -235,23 +241,25 @@ platform:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: build
|
- name: build
|
||||||
image: plugins/docker
|
image: docker.io/plugins/docker:latest
|
||||||
settings:
|
settings:
|
||||||
dockerfile: Dockerfile
|
|
||||||
auto_tag: false
|
auto_tag: false
|
||||||
tags: latest-amd64
|
dockerfile: Dockerfile
|
||||||
|
force_tag: true
|
||||||
|
no_cache: true
|
||||||
|
purge: true
|
||||||
repo: volkerraschek/helm
|
repo: volkerraschek/helm
|
||||||
|
tags: latest-amd64
|
||||||
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
|
||||||
|
|
||||||
- name: notify
|
- name: notify
|
||||||
image: drillster/drone-email
|
image: docker.io/drillster/drone-email:latest
|
||||||
environment:
|
environment:
|
||||||
PLUGIN_HOST:
|
PLUGIN_HOST:
|
||||||
from_secret: smtp_host
|
from_secret: smtp_host
|
||||||
@@ -294,20 +302,22 @@ platform:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: build
|
- name: build
|
||||||
image: plugins/docker
|
image: docker.io/plugins/docker:latest
|
||||||
settings:
|
settings:
|
||||||
dockerfile: Dockerfile
|
|
||||||
auto_tag: false
|
auto_tag: false
|
||||||
tags: latest-arm-v7
|
dockerfile: Dockerfile
|
||||||
|
force_tag: true
|
||||||
|
no_cache: true
|
||||||
|
purge: true
|
||||||
repo: volkerraschek/helm
|
repo: volkerraschek/helm
|
||||||
|
tags: latest-arm-v7
|
||||||
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: docker.io/drillster/drone-email:latest
|
||||||
environment:
|
environment:
|
||||||
PLUGIN_HOST:
|
PLUGIN_HOST:
|
||||||
from_secret: smtp_host
|
from_secret: smtp_host
|
||||||
@@ -353,20 +363,22 @@ platform:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: build
|
- name: build
|
||||||
image: plugins/docker
|
image: docker.io/plugins/docker:latest
|
||||||
settings:
|
settings:
|
||||||
dockerfile: Dockerfile
|
|
||||||
auto_tag: false
|
auto_tag: false
|
||||||
tags: latest-arm64-v8
|
dockerfile: Dockerfile
|
||||||
|
force_tag: true
|
||||||
|
no_cache: true
|
||||||
|
purge: true
|
||||||
repo: volkerraschek/helm
|
repo: volkerraschek/helm
|
||||||
|
tags: latest-arm64-v8
|
||||||
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: docker.io/drillster/drone-email:latest
|
||||||
environment:
|
environment:
|
||||||
PLUGIN_HOST:
|
PLUGIN_HOST:
|
||||||
from_secret: smtp_host
|
from_secret: smtp_host
|
||||||
@@ -408,7 +420,7 @@ name: latest-manifest
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: build-manifest
|
- name: build-manifest
|
||||||
image: plugins/manifest
|
image: docker.io/plugins/manifest:latest
|
||||||
settings:
|
settings:
|
||||||
auto_tag: false
|
auto_tag: false
|
||||||
ignore_missing: true
|
ignore_missing: true
|
||||||
@@ -431,8 +443,8 @@ steps:
|
|||||||
from_secret: smtp_mail_address
|
from_secret: smtp_mail_address
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
cpu: 50
|
cpu: 150
|
||||||
memory: 25M
|
memory: 150M
|
||||||
when:
|
when:
|
||||||
status:
|
status:
|
||||||
- changed
|
- changed
|
||||||
@@ -463,11 +475,14 @@ platform:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: build
|
- name: build
|
||||||
image: plugins/docker
|
image: docker.io/plugins/docker:latest
|
||||||
settings:
|
settings:
|
||||||
dockerfile: Dockerfile
|
|
||||||
auto_tag: true
|
|
||||||
auto_tag_suffix: amd64
|
auto_tag_suffix: amd64
|
||||||
|
auto_tag: true
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
force_tag: true
|
||||||
|
no_cache: true
|
||||||
|
purge: true
|
||||||
repo: volkerraschek/helm
|
repo: volkerraschek/helm
|
||||||
username:
|
username:
|
||||||
from_secret: container_image_registry_user
|
from_secret: container_image_registry_user
|
||||||
@@ -475,13 +490,12 @@ 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
|
||||||
|
|
||||||
- name: notify
|
- name: notify
|
||||||
image: drillster/drone-email
|
image: docker.io/drillster/drone-email:latest
|
||||||
environment:
|
environment:
|
||||||
PLUGIN_HOST:
|
PLUGIN_HOST:
|
||||||
from_secret: smtp_host
|
from_secret: smtp_host
|
||||||
@@ -518,11 +532,14 @@ platform:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: build
|
- name: build
|
||||||
image: plugins/docker
|
image: docker.io/plugins/docker:latest
|
||||||
settings:
|
settings:
|
||||||
dockerfile: Dockerfile
|
|
||||||
auto_tag: true
|
|
||||||
auto_tag_suffix: arm-v7
|
auto_tag_suffix: arm-v7
|
||||||
|
auto_tag: true
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
force_tag: true
|
||||||
|
no_cache: true
|
||||||
|
purge: true
|
||||||
repo: volkerraschek/helm
|
repo: volkerraschek/helm
|
||||||
username:
|
username:
|
||||||
from_secret: container_image_registry_user
|
from_secret: container_image_registry_user
|
||||||
@@ -530,13 +547,12 @@ 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
|
||||||
|
|
||||||
- name: notify
|
- name: notify
|
||||||
image: drillster/drone-email
|
image: docker.io/drillster/drone-email:latest
|
||||||
environment:
|
environment:
|
||||||
PLUGIN_HOST:
|
PLUGIN_HOST:
|
||||||
from_secret: smtp_host
|
from_secret: smtp_host
|
||||||
@@ -573,11 +589,14 @@ platform:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: build
|
- name: build
|
||||||
image: plugins/docker
|
image: docker.io/plugins/docker:latest
|
||||||
settings:
|
settings:
|
||||||
dockerfile: Dockerfile
|
|
||||||
auto_tag: true
|
|
||||||
auto_tag_suffix: arm64-v8
|
auto_tag_suffix: arm64-v8
|
||||||
|
auto_tag: true
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
force_tag: true
|
||||||
|
no_cache: true
|
||||||
|
purge: true
|
||||||
repo: volkerraschek/helm
|
repo: volkerraschek/helm
|
||||||
username:
|
username:
|
||||||
from_secret: container_image_registry_user
|
from_secret: container_image_registry_user
|
||||||
@@ -585,13 +604,12 @@ 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
|
||||||
|
|
||||||
- name: notify
|
- name: notify
|
||||||
image: drillster/drone-email
|
image: docker.io/drillster/drone-email:latest
|
||||||
environment:
|
environment:
|
||||||
PLUGIN_HOST:
|
PLUGIN_HOST:
|
||||||
from_secret: smtp_host
|
from_secret: smtp_host
|
||||||
@@ -624,7 +642,7 @@ name: tagged-manifest
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: build-manifest
|
- name: build-manifest
|
||||||
image: plugins/manifest
|
image: docker.io/plugins/manifest:latest
|
||||||
settings:
|
settings:
|
||||||
auto_tag: true
|
auto_tag: true
|
||||||
ignore_missing: true
|
ignore_missing: true
|
||||||
@@ -647,8 +665,8 @@ steps:
|
|||||||
from_secret: smtp_mail_address
|
from_secret: smtp_mail_address
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
cpu: 50
|
cpu: 150
|
||||||
memory: 25M
|
memory: 150M
|
||||||
when:
|
when:
|
||||||
status:
|
status:
|
||||||
- changed
|
- changed
|
||||||
@@ -664,58 +682,3 @@ trigger:
|
|||||||
- tag
|
- tag
|
||||||
repo:
|
repo:
|
||||||
- volker.raschek/helm-docker
|
- volker.raschek/helm-docker
|
||||||
|
|
||||||
---
|
|
||||||
kind: pipeline
|
|
||||||
type: kubernetes
|
|
||||||
name: sync
|
|
||||||
|
|
||||||
platform:
|
|
||||||
os: linux
|
|
||||||
arch: amd64
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: github
|
|
||||||
image: docker.io/appleboy/drone-git-push:latest
|
|
||||||
resources:
|
|
||||||
limits:
|
|
||||||
cpu: 50
|
|
||||||
memory: 25M
|
|
||||||
settings:
|
|
||||||
branch: master
|
|
||||||
remote: ssh://git@github.com/volker-raschek/helm-docker.git
|
|
||||||
force: true
|
|
||||||
ssh_key:
|
|
||||||
from_secret: ssh_key
|
|
||||||
|
|
||||||
- name: email-notification
|
|
||||||
environment:
|
|
||||||
PLUGIN_HOST:
|
|
||||||
from_secret: smtp_host
|
|
||||||
PLUGIN_USERNAME:
|
|
||||||
from_secret: smtp_username
|
|
||||||
PLUGIN_PASSWORD:
|
|
||||||
from_secret: smtp_password
|
|
||||||
PLUGIN_FROM:
|
|
||||||
from_secret: smtp_mail_address
|
|
||||||
image: docker.io/drillster/drone-email:latest
|
|
||||||
resources:
|
|
||||||
limits:
|
|
||||||
cpu: 50
|
|
||||||
memory: 25M
|
|
||||||
when:
|
|
||||||
status:
|
|
||||||
- changed
|
|
||||||
- failure
|
|
||||||
|
|
||||||
depends_on:
|
|
||||||
- latest-manifest
|
|
||||||
|
|
||||||
trigger:
|
|
||||||
branch:
|
|
||||||
- master
|
|
||||||
event:
|
|
||||||
- cron
|
|
||||||
- push
|
|
||||||
repo:
|
|
||||||
- volker.raschek/helm-docker
|
|
||||||
|
|||||||
16
Dockerfile
16
Dockerfile
@@ -1,8 +1,16 @@
|
|||||||
FROM docker.io/library/alpine:3.15
|
FROM docker.io/library/alpine:3.16
|
||||||
|
|
||||||
ARG HELM_VERSION
|
ARG HELM_VERSION
|
||||||
|
|
||||||
COPY install.sh /install.sh
|
RUN apk add bash curl git openssl && \
|
||||||
RUN VERSION=${HELM_VERSION} /install.sh
|
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" ]
|
||||||
|
|||||||
4
Makefile
4
Makefile
@@ -1,6 +1,6 @@
|
|||||||
# HELM_VERSION
|
# HELM_VERSION
|
||||||
# Only required to install a specifiy 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.9.2 # renovate: datasource=github-releases depName=helm/helm
|
||||||
|
|
||||||
# CONTAINER_RUNTIME
|
# CONTAINER_RUNTIME
|
||||||
# The CONTAINER_RUNTIME variable will be used to specified the path to a
|
# The CONTAINER_RUNTIME variable will be used to specified the path to a
|
||||||
@@ -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
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