From 8e406e4ba42a21a09acc51c2d5d11b9bdc7246e5 Mon Sep 17 00:00:00 2001 From: David Hiendl Date: Fri, 23 Sep 2022 22:51:13 +0200 Subject: [PATCH] updated to ubuntu 22.04 runner and updated build script --- .../Chart.yaml | 2 +- .../hetzner-ubuntu-2204-docker-fastinstall.sh | 24 +++++++++++++++++++ .../values.yaml | 4 ++-- 3 files changed, 27 insertions(+), 3 deletions(-) create mode 100644 charts/gitlab-runner-hetzner-autoscale/install-scripts/hetzner-ubuntu-2204-docker-fastinstall.sh diff --git a/charts/gitlab-runner-hetzner-autoscale/Chart.yaml b/charts/gitlab-runner-hetzner-autoscale/Chart.yaml index 6a12b9c..d69707e 100755 --- a/charts/gitlab-runner-hetzner-autoscale/Chart.yaml +++ b/charts/gitlab-runner-hetzner-autoscale/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v1 description: gitlab-runner-hetzner-autoscale name: gitlab-runner-hetzner-autoscale -version: 0.0.4 +version: 0.0.5 appVersion: v0.1 keywords: - gitlab-runner diff --git a/charts/gitlab-runner-hetzner-autoscale/install-scripts/hetzner-ubuntu-2204-docker-fastinstall.sh b/charts/gitlab-runner-hetzner-autoscale/install-scripts/hetzner-ubuntu-2204-docker-fastinstall.sh new file mode 100644 index 0000000..856a41c --- /dev/null +++ b/charts/gitlab-runner-hetzner-autoscale/install-scripts/hetzner-ubuntu-2204-docker-fastinstall.sh @@ -0,0 +1,24 @@ +#!/bin/bash + +echo "Starting Hetzner Ubuntu 22.04 optimized fast docker install ..." + +# pin docker to 19.03* +#sudo tee /etc/apt/preferences.d/200_docker-ce > /dev/null < /dev/null + +apt-get install -y \ + docker-ce \ + docker-ce-cli \ + containerd.io + +echo "Finished Hetzner Ubuntu 22.04 optimized fast docker install" diff --git a/charts/gitlab-runner-hetzner-autoscale/values.yaml b/charts/gitlab-runner-hetzner-autoscale/values.yaml index 6fe6acb..6432ca2 100644 --- a/charts/gitlab-runner-hetzner-autoscale/values.yaml +++ b/charts/gitlab-runner-hetzner-autoscale/values.yaml @@ -3,10 +3,10 @@ pullPolicy: Always hetzner: apiToken: - engineInstallUrl: "https://raw.githubusercontent.com/davidhiendl/gitlab-runner-hetzner-autoscale/master/charts/gitlab-runner-hetzner-autoscale/install-scripts/hetzner-ubuntu-docker-fastinstall.sh" + engineInstallUrl: "https://raw.githubusercontent.com/davidhiendl/gitlab-runner-hetzner-autoscale/master/charts/gitlab-runner-hetzner-autoscale/install-scripts/hetzner-ubuntu-2204-docker-fastinstall.sh" serverType: "cpx21" serverLocation: "nbg1" - image: "ubuntu-20.04" + image: "ubuntu-22.04" runner: registrationToken: ""