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