alpine: gitea-act_runner
This commit is contained in:
parent
af9d561f1a
commit
915af995c1
@ -20,6 +20,7 @@ mkdir -p /srv/data
|
||||
|
||||
SelectImages() {
|
||||
SEL=$(whiptail --title "Images" --checklist "" 0 0 0 \
|
||||
"alpine" "" on \
|
||||
"debian-bookworm" "" on \
|
||||
"debian-bookworm-slim" "" on \
|
||||
"debian-bullseye" "" on \
|
||||
@ -33,19 +34,18 @@ SelectImages() {
|
||||
for ITM in ${SEL}; do
|
||||
# shellcheck disable=SC3000-SC4000
|
||||
case ${ITM//\"/} in
|
||||
"alpine") IMAGES+='"alpine:docker://alpine",';;
|
||||
"debian-bookworm") IMAGES+='"debian-bookworm:docker://debian:bookworm",';;
|
||||
"debian-bookworm-slim") IMAGES+='"debian-bookworm-slim:docker://debian:bookworm-slim",';;
|
||||
"debian-bullseye") IMAGES+='"debian-bullseye:docker://debian:bullseye",';;
|
||||
"debian-bullseye-slim") IMAGES+='"debian-bullseye-slim:docker://debian:bullseye-slim",';;
|
||||
"debian-buster") IMAGES+='"debian-buster:docker://debian:buster",';;
|
||||
"debian-buster-slim") IMAGES+='"debian-buster-slim:docker://debian:buster-slim",';;
|
||||
"archlinux") IMAGES+='"archlinux:docker://archlinux",';;
|
||||
"archlinux-base-devel") IMAGES+='"archlinux-base-devel:docker://archlinux:base-devel",';;
|
||||
"alpine") IMAGES=${IMAGES}'"alpine:docker://alpine",';;
|
||||
"debian-bookworm") IMAGES=${IMAGES}'"debian-bookworm:docker://debian:bookworm",';;
|
||||
"debian-bookworm-slim") IMAGES=${IMAGES}'"debian-bookworm-slim:docker://debian:bookworm-slim",';;
|
||||
"debian-bullseye") IMAGES=${IMAGES}'"debian-bullseye:docker://debian:bullseye",';;
|
||||
"debian-bullseye-slim") IMAGES=${IMAGES}'"debian-bullseye-slim:docker://debian:bullseye-slim",';;
|
||||
"debian-buster") IMAGES=${IMAGES}'"debian-buster:docker://debian:buster",';;
|
||||
"debian-buster-slim") IMAGES=${IMAGES}'"debian-buster-slim:docker://debian:buster-slim",';;
|
||||
"archlinux") IMAGES=${IMAGES}'"archlinux:docker://archlinux",';;
|
||||
"archlinux-base-devel") IMAGES=${IMAGES}'"archlinux-base-devel:docker://archlinux:base-devel",';;
|
||||
esac
|
||||
done
|
||||
# shellcheck disable=SC2027
|
||||
IMAGES="["$(printf '%s' "${IMAGES}" | cut -c 1)"]"
|
||||
IMAGES=$(printf '%s' "${IMAGES}" | cut -c 1)
|
||||
fi
|
||||
}
|
||||
SelectImages
|
||||
@ -53,7 +53,7 @@ SelectImages
|
||||
{
|
||||
echo "runner:"
|
||||
echo " insecure: true"
|
||||
echo " labels: ${IMAGES}]"
|
||||
echo " labels: [${IMAGES}]"
|
||||
} > /srv/data/config.yaml
|
||||
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user