From 7bc2fbb44b6f56986256673e7307d06bc8f27cc3 Mon Sep 17 00:00:00 2001 From: Galen Guyer Date: Wed, 21 Sep 2022 10:05:07 -0400 Subject: Nicer readme formatting --- README.md | 20 ++++++++++---------- bake.sh | 12 ++++++------ 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index 557b992..65dfa74 100644 --- a/README.md +++ b/README.md @@ -2,15 +2,15 @@ automatic builds of nginx with multiple architectures and rootless support ## tags -- alpine-mainline: latest, alpine, alpine3.16.2, mainline, mainline-alpine, mainline-alpine3.16.2, 1.23.1, 1.23.1-alpine, 1.23.1-alpine3.16.2 -- alpine-mainline-autoindex: autoindex, alpine-autoindex, alpine3.16.2-autoindex, mainline-autoindex, mainline-alpine-autoindex, mainline-alpine3.16.2-autoindex, 1.23.1-autoindex, 1.23.1-alpine-autoindex, 1.23.1-alpine3.16.2-autoindex -- alpine-mainline-spa: spa, alpine-spa, alpine3.16.2-spa, mainline-spa, mainline-alpine-spa, mainline-alpine3.16.2-spa, 1.23.1-spa, 1.23.1-alpine-spa, 1.23.1-alpine3.16.2-spa -- alpine-stable: stable, stable-alpine, stable-alpine3.16.2, 1.22.0, 1.22.0-alpine, 1.22.0-alpine3.16.2 -- alpine-stable-autoindex: stable-autoindex, stable-alpine-autoindex, stable-alpine3.16.2-autoindex, 1.22.0-autoindex, 1.22.0-alpine-autoindex, 1.22.0-alpine3.16.2-autoindex -- alpine-stable-spa: stable-spa, stable-alpine-spa, stable-alpine3.16.2-spa, 1.22.0-spa, 1.22.0-alpine-spa, 1.22.0-alpine3.16.2-spa +- **alpine-mainline**: `latest`, `alpine`, `alpine3.16.2`, `mainline`, `mainline-alpine`, `mainline-alpine3.16.2`, `1.23.1`, `1.23.1-alpine`, `1.23.1-alpine3.16.2` +- **alpine-mainline-autoindex**: `autoindex`, `alpine-autoindex`, `alpine3.16.2-autoindex`, `mainline-autoindex`, `mainline-alpine-autoindex`, `mainline-alpine3.16.2-autoindex`, `1.23.1-autoindex`, `1.23.1-alpine-autoindex`, `1.23.1-alpine3.16.2-autoindex` +- **alpine-mainline-spa**: `spa`, `alpine-spa`, `alpine3.16.2-spa`, `mainline-spa`, `mainline-alpine-spa`, `mainline-alpine3.16.2-spa`, `1.23.1-spa`, `1.23.1-alpine-spa`, `1.23.1-alpine3.16.2-spa` +- **alpine-stable**: `stable`, `stable-alpine`, `stable-alpine3.16.2`, `1.22.0`, `1.22.0-alpine`, `1.22.0-alpine3.16.2` +- **alpine-stable-autoindex**: `stable-autoindex`, `stable-alpine-autoindex`, `stable-alpine3.16.2-autoindex`, `1.22.0-autoindex`, `1.22.0-alpine-autoindex`, `1.22.0-alpine3.16.2-autoindex` +- **alpine-stable-spa**: `stable-spa`, `stable-alpine-spa`, `stable-alpine3.16.2-spa`, `1.22.0-spa`, `1.22.0-alpine-spa`, `1.22.0-alpine3.16.2-spa` ## build options -ALPINE_VER: 3.16.2 -NGINX_MAINLINE: 1.23.1 -NGINX_STABLE: 1.22.0 -PCRE2_VER: pcre2-10.40 +- **ALPINE**: `3.16.2` +- **NGINX_MAINLINE**: `1.23.1` +- **NGINX_STABLE**: `1.22.0` +- **PCRE2**: `pcre2-10.40` diff --git a/bake.sh b/bake.sh index a7886e2..2ea23fa 100755 --- a/bake.sh +++ b/bake.sh @@ -55,11 +55,11 @@ echo "## tags" >> README.md target_info="$(docker buildx bake --print | jq '.target')" targets="$(echo $target_info | jq -r '.|keys[]')" for target in $targets; do - tags="$(echo "$target_info" | jq -r '[."'"$target"'".tags|.[]|split(":")|.[1]]|join(", ")')" - echo "- $target: $tags" >> README.md + tags="$(echo "$target_info" | jq -r '[."'"$target"'".tags|.[]|split(":")|.[1]|"`\(.)`"]|join(", ")')" + echo "- **$target**: $tags" >> README.md done echo -e "\n## build options" >> README.md -echo "ALPINE_VER: $ALPINE_VER" >> README.md -echo "NGINX_MAINLINE: $NGINX_MAINLINE" >> README.md -echo "NGINX_STABLE: $NGINX_STABLE" >> README.md -echo "PCRE2_VER: $PCRE2_VER" >> README.md +echo "- **ALPINE**: "'`'"$ALPINE_VER"'`'"" >> README.md +echo "- **NGINX_MAINLINE**: "'`'"$NGINX_MAINLINE"'`'"" >> README.md +echo "- **NGINX_STABLE**: "'`'"$NGINX_STABLE"'`'"" >> README.md +echo "- **PCRE2**: "'`'"$PCRE2_VER"'`'"" >> README.md -- cgit v1.2.3