Compare commits

...

17 Commits

Author SHA1 Message Date
8e2c811bd6 docs(README): update documentation
All checks were successful
Lint Markdown files / markdown-lint (push) Successful in 16s
Update Docker Hub Description / update-description-on-hub-docker-io (push) Successful in 19s
Build / build-amd64 (push) Successful in 27s
Build / build-arm64 (push) Successful in 1m11s
2025-11-02 22:33:13 +01:00
be0c064f75 fix(ci): add autoreleaser
All checks were successful
Build / build-amd64 (push) Successful in 1m1s
Lint Markdown files / markdown-lint (push) Successful in 17s
Build / build-arm64 (push) Successful in 1m47s
2025-11-02 22:30:24 +01:00
633e7ff468 Merge pull request 'chore(deps): update docker.io/library/alpine docker tag to v3.22.2' (#126) from renovate/container-images into master
All checks were successful
Build / build-amd64 (push) Successful in 29s
Lint Markdown files / markdown-lint (push) Successful in 4s
Build / build-arm64 (push) Successful in 1m16s
2025-10-08 22:09:27 +00:00
f617356089 chore(deps): update docker.io/library/alpine docker tag to v3.22.2
All checks were successful
Build / build-amd64 (pull_request) Successful in 29s
Lint Markdown files / markdown-lint (pull_request) Successful in 9s
Build / build-arm64 (pull_request) Successful in 1m8s
2025-10-08 22:07:07 +00:00
9fd8857433 Merge pull request 'chore(deps): update peter-evans/dockerhub-description action to v5' (#125) from renovate/peter-evans-dockerhub-description-5.x into master
All checks were successful
Build / build-arm64 (push) Successful in 1m9s
Lint Markdown files / markdown-lint (push) Successful in 8s
Build / build-amd64 (push) Successful in 26s
2025-10-02 14:59:40 +00:00
21f951436b chore(deps): update peter-evans/dockerhub-description action to v5
All checks were successful
Build / build-arm64 (pull_request) Successful in 1m2s
Lint Markdown files / markdown-lint (pull_request) Successful in 10s
Build / build-amd64 (pull_request) Successful in 26s
2025-10-01 16:08:00 +00:00
7345cc00e1 Merge pull request 'chore(deps): update docker/login-action action to v3.6.0' (#124) from renovate/actions into master
All checks were successful
Build / build-amd64 (push) Successful in 27s
Lint Markdown files / markdown-lint (push) Successful in 4s
Build / build-arm64 (push) Successful in 1m7s
2025-09-29 13:40:11 +00:00
f019cf5e4d chore(deps): update docker/login-action action to v3.6.0
All checks were successful
Build / build-arm64 (pull_request) Successful in 1m5s
Lint Markdown files / markdown-lint (pull_request) Successful in 10s
Build / build-amd64 (pull_request) Successful in 25s
2025-09-29 13:09:18 +00:00
c0d15516e2 chore(deps): update dependency helm/helm to v3.19.0
All checks were successful
Build / build-amd64 (push) Successful in 26s
Lint Markdown files / markdown-lint (push) Successful in 4s
Release / push-amd64 (push) Successful in 40s
Build / build-arm64 (push) Successful in 1m10s
Release / push-arm64 (push) Successful in 1m40s
Release / push-manifest (push) Successful in 6s
Release / sync-to-hub-docker-io (push) Successful in 52s
2025-09-21 12:43:23 +02:00
b15a4d9c58 chore(deps): update dependency helm/helm to v3.18.6
All checks were successful
Build / build-amd64 (push) Successful in 25s
Lint Markdown files / markdown-lint (push) Successful in 4s
Release / push-amd64 (push) Successful in 37s
Build / build-arm64 (push) Successful in 1m5s
Release / push-arm64 (push) Successful in 1m47s
Release / push-manifest (push) Successful in 6s
Release / sync-to-hub-docker-io (push) Successful in 34s
2025-09-21 12:42:41 +02:00
c251c08c33 Merge pull request 'chore(deps): update actions/checkout action to v5' (#123) from renovate/actions-checkout-5.x into master
Some checks failed
Build / build-arm64 (push) Has started running
Build / build-amd64 (push) Has been cancelled
Lint Markdown files / markdown-lint (push) Has been cancelled
2025-09-21 10:42:18 +00:00
7f2d32a5ec chore(deps): update actions/checkout action to v5
All checks were successful
Build / build-amd64 (pull_request) Successful in 28s
Lint Markdown files / markdown-lint (pull_request) Successful in 4s
Build / build-arm64 (pull_request) Successful in 1m12s
2025-09-18 17:00:02 +00:00
a036844c8c chore(deps): update dependency helm/helm to v3.18.5
All checks were successful
Build / build-amd64 (pull_request) Successful in 1m29s
Lint Markdown files / markdown-lint (pull_request) Successful in 14s
Build / build-arm64 (pull_request) Successful in 1m6s
Build / build-arm64 (push) Successful in 1m3s
Lint Markdown files / markdown-lint (push) Successful in 9s
Build / build-amd64 (push) Successful in 1m32s
Release / push-amd64 (push) Successful in 39s
Release / push-arm64 (push) Successful in 1m38s
Release / push-manifest (push) Successful in 11s
Release / sync-to-hub-docker-io (push) Successful in 36s
2025-08-13 22:06:11 +00:00
12c04703e7 Merge pull request 'chore(deps): update actions/checkout action to v4.3.0' (#119) from renovate/actions into master
All checks were successful
Build / build-amd64 (push) Successful in 27s
Lint Markdown files / markdown-lint (push) Successful in 4s
Build / build-arm64 (push) Successful in 1m0s
2025-08-11 14:10:19 +00:00
bc45c1b0e0 chore(deps): update actions/checkout action to v4.3.0
All checks were successful
Lint Markdown files / markdown-lint (pull_request) Successful in 4s
Build / build-arm64 (pull_request) Successful in 1m2s
Build / build-amd64 (pull_request) Successful in 1m41s
2025-08-11 13:14:45 +00:00
c25909951e Merge pull request 'chore(deps): update docker/login-action action to v3.5.0' (#118) from renovate/actions into master
All checks were successful
Build / build-arm64 (push) Successful in 1m1s
Lint Markdown files / markdown-lint (push) Successful in 10s
Build / build-amd64 (push) Successful in 1m10s
2025-08-04 20:03:31 +00:00
ee37332a63 chore(deps): update docker/login-action action to v3.5.0
All checks were successful
Build / build-arm64 (pull_request) Successful in 1m8s
Lint Markdown files / markdown-lint (pull_request) Successful in 10s
Build / build-amd64 (pull_request) Successful in 1m31s
2025-08-04 16:08:49 +00:00
9 changed files with 197 additions and 96 deletions

View File

@@ -0,0 +1,71 @@
name: Auto release
on:
push:
branches: [ "master" ]
paths:
- Makefile
env:
GIT_EMAIL: noreply@cryptic.systems
GIT_USER: CSRBot
jobs:
tag_on_change:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5.0.0
with:
fetch-depth: 0
- name: Check if HELM_VERSION line changed
id: check_change
run: |
echo "changed=false" >> $GITHUB_OUTPUT
for file in Makefile; do
if git diff HEAD~1 HEAD -- "${file}" | grep --quiet '^[+-]HELM_VERSION'; then
echo "HELM_VERSION line changed."
echo "changed=true" >> $GITHUB_OUTPUT
break
fi
done
- name: Stop if no change detected
if: steps.check_change.outputs.changed == 'false'
run: echo "No HELM_VERSION change. Exiting..."
- name: Create and push new tag
id: create_tag
if: steps.check_change.outputs.changed == 'true'
run: |
defined_tag="$(grep --only-matching --perl-regexp 'HELM_VERSION\?=v?[\d]*(\.[\d]*){0,2}' Makefile | cut --delimiter='=' --fields=2)"
echo "defined_tag=${defined_tag}" >> $GITHUB_OUTPUT
echo "New tag: ${defined_tag}"
git config --local user.name "${GIT_USER}"
git config --local user.email "${GIT_EMAIL}"
git tag -a "${defined_tag}" -m "${defined_tag}"
git push origin "${defined_tag}"
- name: Trigger "Push tagged images" workflow
uses: actions/github-script@v8.0.0
with:
script: |
const workflowFileName = 'release.yaml';
const defaultBranch = context.payload.repository.default_branch;
const definedTag = '${{ steps.create_tag.outputs.defined_tag }}';
await github.rest.actions.createWorkflowDispatch({
owner: context.repo.owner,
repo: context.repo.repo,
workflow_id: workflowFileName,
ref: defaultBranch,
inputs: {
tag: definedTag
}
});

View File

@@ -15,7 +15,7 @@ jobs:
build-arm64:
runs-on: ubuntu-latest-arm64
steps:
- uses: actions/checkout@v4.2.2
- uses: actions/checkout@v5.0.0
- uses: docker/setup-qemu-action@v3.6.0
- uses: docker/setup-buildx-action@v3.11.1
@@ -33,7 +33,7 @@ jobs:
build-amd64:
runs-on: ubuntu-latest-amd64
steps:
- uses: actions/checkout@v4.2.2
- uses: actions/checkout@v5.0.0
- uses: docker/setup-qemu-action@v3.6.0
- uses: docker/setup-buildx-action@v3.11.1

View File

@@ -13,10 +13,9 @@ on:
jobs:
markdown-lint:
runs-on:
- ubuntu-latest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.2.2
- uses: actions/checkout@v5.0.0
- uses: DavidAnson/markdownlint-cli2-action@v20.0.0
with:
globs: '**/*.md'

View File

@@ -4,16 +4,38 @@ on:
push:
tags:
- "**"
workflow_dispatch:
inputs:
tag:
description: "Tag which should be released"
type: string
required: true
jobs:
push-arm64:
runs-on: ubuntu-latest-arm64
steps:
- uses: actions/checkout@v4.2.2
- id: version_extraction
name: Extract git tag
run: |
VERSION="${{ inputs.tag || github.ref_name }}"
VERSION="${VERSION#refs/*/}"
echo "Version (raw): ${VERSION}"
echo "Version (cleaned): ${VERSION/v/}"
echo "version_raw=${VERSION}" >> $GITHUB_OUTPUT
echo "version_cleaned=${VERSION/v/}" >> $GITHUB_OUTPUT
- uses: actions/checkout@v5.0.0
with:
fetch-tags: true
ref: "${{ steps.version_extraction.outputs.version_raw }}"
- uses: docker/setup-qemu-action@v3.6.0
- uses: docker/setup-buildx-action@v3.11.1
- uses: docker/login-action@v3.4.0
- uses: docker/login-action@v3.6.0
with:
registry: git.cryptic.systems
username: ${{ github.repository_owner }}
@@ -21,25 +43,39 @@ jobs:
- name: Build and push image
run: |
TAG=$(echo ${{ github.ref_name }} | sed 's/v//gm')
docker buildx build \
--build-arg HELM_VERSION=${{ github.ref_name }} \
--file Dockerfile \
--platform linux/arm64 \
--provenance false \
--push \
--tag git.cryptic.systems/volker.raschek/helm:${TAG}-arm64 \
--tag git.cryptic.systems/volker.raschek/helm:${{ steps.version_extraction.outputs.version_cleaned }}-arm64 \
.
push-amd64:
runs-on: ubuntu-latest-amd64
steps:
- uses: actions/checkout@v4.2.2
- id: version_extraction
name: Extract git tag
run: |
VERSION="${{ inputs.tag || github.ref_name }}"
VERSION="${VERSION#refs/*/}"
echo "Version (raw): ${VERSION}"
echo "Version (cleaned): ${VERSION/v/}"
echo "version_raw=${VERSION}" >> $GITHUB_OUTPUT
echo "version_cleaned=${VERSION/v/}" >> $GITHUB_OUTPUT
- uses: actions/checkout@v5.0.0
with:
fetch-tags: true
ref: "${{ steps.version_extraction.outputs.version_raw }}"
- uses: docker/setup-qemu-action@v3.6.0
- uses: docker/setup-buildx-action@v3.11.1
- uses: docker/login-action@v3.4.0
- uses: docker/login-action@v3.6.0
with:
registry: git.cryptic.systems
username: ${{ github.repository_owner }}
@@ -47,15 +83,13 @@ jobs:
- name: Build and push image
run: |
TAG=$(echo ${{ github.ref_name }} | sed 's/v//gm')
docker buildx build \
--build-arg HELM_VERSION=${{ github.ref_name }} \
--file Dockerfile \
--platform linux/amd64 \
--provenance false \
--push \
--tag git.cryptic.systems/volker.raschek/helm:${TAG}-amd64 \
--tag git.cryptic.systems/volker.raschek/helm:${{ steps.version_extraction.outputs.version_cleaned }}-amd64 \
.
push-manifest:
@@ -64,7 +98,19 @@ jobs:
- push-arm64
- push-amd64
steps:
- uses: docker/login-action@v3.4.0
- id: version_extraction
name: Extract git tag
run: |
VERSION="${{ inputs.tag || github.ref_name }}"
VERSION="${VERSION#refs/*/}"
echo "Version (raw): ${VERSION}"
echo "Version (cleaned): ${VERSION/v/}"
echo "version_raw=${VERSION}" >> $GITHUB_OUTPUT
echo "version_cleaned=${VERSION/v/}" >> $GITHUB_OUTPUT
- uses: docker/login-action@v3.6.0
with:
registry: git.cryptic.systems
username: ${{ github.repository_owner }}
@@ -72,30 +118,38 @@ jobs:
- name: Create and push manifest
run: |
TAG=$(echo ${{ github.ref_name }} | sed 's/v//gm')
docker manifest create git.cryptic.systems/volker.raschek/helm:${{ steps.version_extraction.outputs.version_cleaned }} \
--amend git.cryptic.systems/volker.raschek/helm:${{ steps.version_extraction.outputs.version_cleaned }}-amd64 \
--amend git.cryptic.systems/volker.raschek/helm:${{ steps.version_extraction.outputs.version_cleaned }}-arm64
docker manifest create git.cryptic.systems/volker.raschek/helm:${TAG} \
--amend git.cryptic.systems/volker.raschek/helm:${TAG}-amd64 \
--amend git.cryptic.systems/volker.raschek/helm:${TAG}-arm64
docker manifest push git.cryptic.systems/volker.raschek/helm:${TAG}
docker manifest push git.cryptic.systems/volker.raschek/helm:${{ steps.version_extraction.outputs.version_cleaned }}
sync-to-hub-docker-io:
needs:
- push-manifest
runs-on: ubuntu-latest
steps:
- name: Copy images to docker.io
run: |
TAG=$(echo ${{ github.ref_name }} | sed 's/v//gm')
- id: version_extraction
name: Extract git tag
run: |
VERSION="${{ inputs.tag || github.ref_name }}"
VERSION="${VERSION#refs/*/}"
apt-get update --yes
apt-get install --yes skopeo
skopeo copy \
--all \
--dest-password ${{ secrets.DOCKER_IO_PASSWORD }} \
--dest-username ${{ secrets.DOCKER_IO_USERNAME }} \
--src-password ${{ secrets.GIT_CRYPTIC_SYSTEMS_PACKAGE_REGISTRY_TOKEN }} \
--src-username volker.raschek \
docker://git.cryptic.systems/volker.raschek/helm:${TAG} \
docker://docker.io/volkerraschek/helm:${TAG}
echo "Version (raw): ${VERSION}"
echo "Version (cleaned): ${VERSION/v/}"
echo "version_raw=${VERSION}" >> $GITHUB_OUTPUT
echo "version_cleaned=${VERSION/v/}" >> $GITHUB_OUTPUT
- name: Copy images to docker.io
run: |
apt-get update --yes
apt-get install --yes skopeo
skopeo copy \
--all \
--dest-password ${{ secrets.DOCKER_IO_PASSWORD }} \
--dest-username ${{ secrets.DOCKER_IO_USERNAME }} \
--src-password ${{ secrets.GIT_CRYPTIC_SYSTEMS_PACKAGE_REGISTRY_TOKEN }} \
--src-username volker.raschek \
docker://git.cryptic.systems/volker.raschek/helm:${{ steps.version_extraction.outputs.version_cleaned }} \
docker://docker.io/volkerraschek/helm:${{ steps.version_extraction.outputs.version_cleaned }}

View File

@@ -13,8 +13,8 @@ jobs:
runs-on:
- ubuntu-latest
steps:
- uses: actions/checkout@v4.2.2
- uses: peter-evans/dockerhub-description@v4.0.2
- uses: actions/checkout@v5.0.0
- uses: peter-evans/dockerhub-description@v5.0.0
with:
username: ${{ secrets.DOCKER_IO_USERNAME }}
password: ${{ secrets.DOCKER_IO_PASSWORD }}

View File

@@ -1,4 +1,4 @@
FROM docker.io/library/alpine:3.22.1
FROM docker.io/library/alpine:3.22.2
ARG HELM_VERSION

View File

@@ -1,6 +1,6 @@
# HELM_VERSION
# Only required to install a specify version
HELM_VERSION?=v3.18.4 # renovate: datasource=github-releases depName=helm/helm
HELM_VERSION?=v3.19.0 # renovate: datasource=github-releases depName=helm/helm
# CONTAINER_RUNTIME
# The CONTAINER_RUNTIME variable will be used to specified the path to a

View File

@@ -3,59 +3,15 @@
[![Docker Pulls](https://img.shields.io/docker/pulls/volkerraschek/helm)](https://hub.docker.com/r/volkerraschek/helm)
This project contains all sources to build the container image `git.cryptic.systems/volker.raschek/helm`. The primary
goal of this project is to package the binary `helm` as container image to provide the functionally for CI/CD workflows.
goal of this project is to package the binary `helm` as container image and provide the functionally for CI/CD workflows.
The source code of the binary can be found in the upstream project of [helm](github.com/helm/helm).
## drone
Here is an example to lint, package and deploy a chart to chartmuseum via
`git.cryptic.systems/volker.raschek/helm`.
```yaml
kind: pipeline
type: kubernetes
name: linter
platform:
os: linux
arch: amd64
steps:
- name: helm lint
commands:
- helm lint
image: git.cryptic.systems/volker.raschek/helm:latest
resources:
limits:
cpu: 50
memory: 50M
---
kind: pipeline
type: kubernetes
name: release
platform:
os: linux
steps:
- name: release-helm-chart
commands:
- helm plugin install https://github.com/chartmuseum/helm-push.git
- helm repo add myrepo https://charts.example.com/myrepo
- helm package --version ${DRONE_TAG} .
- helm cm-push ${DRONE_REPO_NAME}-${DRONE_TAG}.tgz myrepo
environment:
HELM_REPO_PASSWORD:
from_secret: helm_repo_password
HELM_REPO_USERNAME:
from_secret: helm_repo_username
image: git.cryptic.systems/volker.raschek/helm:latest
resources:
limits:
cpu: 50
memory: 50M
trigger:
event:
- tag
```bash
IMAGE_VERSION=3.19.0
docker run \
--rm \
--volume "$(pwd):$(pwd)" \
--workdir "$(pwd)" \
"git.cryptic.systems/volker.raschek/helm:${IMAGE_VERSION}" \
version
```

View File

@@ -1,5 +1,19 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"customManagers": [
{
"customType": "regex",
"fileMatch": [
"^README\\.md$"
],
"matchStrings": [
"IMAGE_VERSION=(?<currentValue>.*)"
],
"datasourceTemplate": "github-releases",
"depNameTemplate": "helm/helm",
"versioningTemplate": "semver"
}
],
"extends": [
"local>volker.raschek/renovate-config:default#master",
"local>volker.raschek/renovate-config:container#master",
@@ -8,9 +22,16 @@
],
"packageRules": [
{
"automerge": false,
"matchPackageNames": [ "helm" ],
"matchManagers": [ "regex" ]
"addLabels": [
"renovate/automerge"
],
"automerge": true,
"matchPackageNames": [
"helm/helm"
],
"matchManagers": [
"regex"
]
}
]
}