Skip to content

Commit

Permalink
updated to ubuntu 22.04 runner and updated build script
Browse files Browse the repository at this point in the history
  • Loading branch information
davidhiendl committed Sep 23, 2022
1 parent 5a98495 commit 8e406e4
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 3 deletions.
2 changes: 1 addition & 1 deletion charts/gitlab-runner-hetzner-autoscale/Chart.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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 <<EOT
#Package: docker-ce*
#Pin: version 5:19.03*
#Pin-Priority: 1001
#EOT

mkdir -p /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg

echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null

apt-get install -y \
docker-ce \
docker-ce-cli \
containerd.io

echo "Finished Hetzner Ubuntu 22.04 optimized fast docker install"
4 changes: 2 additions & 2 deletions charts/gitlab-runner-hetzner-autoscale/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: ""
Expand Down

0 comments on commit 8e406e4

Please sign in to comment.