[skip ci] add variable to set agent distro

This commit is contained in:
Robert Kaussow 2021-01-24 15:47:31 +01:00
parent fa26ce9722
commit 0ef753e171
No known key found for this signature in database
GPG Key ID: 65362AE74AF98B61
2 changed files with 2 additions and 1 deletions

View File

@ -47,6 +47,7 @@ droneci_autoscaler_agent_image: "drone/drone-runner-docker:{{ droneci_autoscaler
droneci_autoscaler_agent_concurrency: 2
droneci_autoscaler_agent_os: linux
droneci_autoscaler_agent_architecture: amd64
droneci_autoscaler_agent_distro: ubuntu
droneci_autoscaler_agent_volumes: []
droneci_autoscaler_agent_package_upgrade: False

View File

@ -13,7 +13,7 @@ bootcmd:
apt:
sources:
docker.list:
source: deb [arch={% if inst.agent_architecture | default(droneci_autoscaler_agent_architecture) == "arm" %}armhf{% elif inst.agent_architecture | default(droneci_autoscaler_agent_architecture) == "arm64" %}arm64{% else %}amd64{% endif %}] https://download.docker.com/linux/ubuntu $RELEASE stable
source: deb [arch={% if inst.agent_architecture | default(droneci_autoscaler_agent_architecture) == "arm" %}armhf{% elif inst.agent_architecture | default(droneci_autoscaler_agent_architecture) == "arm64" %}arm64{% else %}amd64{% endif %}] https://download.docker.com/linux/{{ inst.agent_distro | default(droneci_autoscaler_agent_distro) }} $RELEASE stable
keyid: 9DC858229FC7DD38854AE2D88D81803C0EBFCD88
packages: