Skip to content

Commit 12baf05

Browse files
committed
Fix README generation
1 parent 4edb89e commit 12baf05

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

.scripts/update_readme_badges.sh

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,15 @@ for BUILD_WORKFLOW_FILE in .github/workflows/build_*.yaml; do
5454
echo >> "$BADGES_TMP"
5555
fi
5656
done
57-
# This needs to add the remaning empty columns of the last row in the table
58-
# This is a hack to fix the status quo and make markdownlint happy.
59-
for _ in $(seq 0 $((COLS - 1))); do
60-
echo -n "| " >> "$BADGES_TMP"
61-
done
62-
echo "|" >> "$BADGES_TMP"
57+
58+
# Add remaining empty columns to complete the last row if needed
59+
# "if needed" is the first if here: It'll only run when we're NOT on the last column (0 indexed)
60+
if [ ${CURRENT_COLUMN} -ne $((COLS - 1)) ]; then
61+
for _ in $(seq $((CURRENT_COLUMN + 1)) $((COLS - 1))); do
62+
echo -n "| " >> "$BADGES_TMP"
63+
done
64+
echo "|" >> "$BADGES_TMP"
65+
fi
6366
echo -n "<!-- end:badges -->" >> "$BADGES_TMP"
6467

6568
# Print the image and link shortcuts. Eg:

README.md

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,15 @@
22

33
This repository contains Dockerfiles and scripts to build base images for use within Stackable.
44

5-
<!-- start:badges: autogenerated by .scripts/update_readme_badges.sh -->
5+
<!-- start:badges: autogenerated by ./.scripts/update_readme_badges.sh -->
66
| | | | |
77
| -: | -: | -: | -: |
88
| [![Build Airflow]][build_airflow.yaml] | [![Build Druid]][build_druid.yaml] | [![Build Hadoop]][build_hadoop.yaml] | [![Build HBase]][build_hbase.yaml] |
9-
| [![Build Hello-World]][build_hello-world.yaml] | [![Build Hive]][build_hive.yaml] | [![Build Java Base]][build_java-base.yaml] | [![Build Java Development]][build_java-devel.yaml] |
10-
| [![Build Kafka Testing Tools]][build_kafka-testing-tools.yaml] | [![Build Kafka]][build_kafka.yaml] | [![Build Krb5]][build_krb5.yaml] | [![Build NiFi]][build_nifi.yaml] |
11-
| [![Build Omid]][build_omid.yaml] | [![Build OPA]][build_opa.yaml] | [![Build Spark Connect Client]][build_spark-connect-client.yaml] | [![Build Spark K8s]][build_spark-k8s.yaml] |
12-
| [![Build Stackable Base]][build_stackable-base.yaml] | [![Build Superset]][build_superset.yaml] | [![Build Testing Tools]][build_testing-tools.yaml] | [![Build Tools]][build_tools.yaml] |
13-
| [![Build Trino CLI]][build_trino-cli.yaml] | [![Build Trino]][build_trino.yaml] | [![Build Vector]][build_vector.yaml] | [![Build ZooKeeper]][build_zookeeper.yaml] |
14-
| | | | |
9+
| [![Build Hive]][build_hive.yaml] | [![Build Java Base]][build_java-base.yaml] | [![Build Java Development]][build_java-devel.yaml] | [![Build Kafka Testing Tools]][build_kafka-testing-tools.yaml] |
10+
| [![Build Kafka]][build_kafka.yaml] | [![Build Krb5]][build_krb5.yaml] | [![Build NiFi]][build_nifi.yaml] | [![Build Omid]][build_omid.yaml] |
11+
| [![Build OPA]][build_opa.yaml] | [![Build Spark Connect Client]][build_spark-connect-client.yaml] | [![Build Spark K8s]][build_spark-k8s.yaml] | [![Build Stackable Base]][build_stackable-base.yaml] |
12+
| [![Build Superset]][build_superset.yaml] | [![Build Testing Tools]][build_testing-tools.yaml] | [![Build Tools]][build_tools.yaml] | [![Build Trino CLI]][build_trino-cli.yaml] |
13+
| [![Build Trino]][build_trino.yaml] | [![Build Vector]][build_vector.yaml] | [![Build ZooKeeper]][build_zookeeper.yaml] | |
1514
<!-- end:badges -->
1615

1716
## Prerequisites
@@ -213,7 +212,7 @@ USER 1000:1000
213212
ENTRYPOINT ["/stackable-zookeeper-operator"]
214213
```
215214

216-
<!-- start:links: autogenerated by .scripts/update_readme_badges.sh -->
215+
<!-- start:links: autogenerated by ./.scripts/update_readme_badges.sh -->
217216
[Build Airflow]: https://github.com/stackabletech/docker-images/actions/workflows/build_airflow.yaml/badge.svg
218217
[build_airflow.yaml]: https://github.com/stackabletech/docker-images/actions/workflows/build_airflow.yaml
219218
[Build Druid]: https://github.com/stackabletech/docker-images/actions/workflows/build_druid.yaml/badge.svg
@@ -222,8 +221,6 @@ ENTRYPOINT ["/stackable-zookeeper-operator"]
222221
[build_hadoop.yaml]: https://github.com/stackabletech/docker-images/actions/workflows/build_hadoop.yaml
223222
[Build HBase]: https://github.com/stackabletech/docker-images/actions/workflows/build_hbase.yaml/badge.svg
224223
[build_hbase.yaml]: https://github.com/stackabletech/docker-images/actions/workflows/build_hbase.yaml
225-
[Build Hello-World]: https://github.com/stackabletech/docker-images/actions/workflows/build_hello-world.yaml/badge.svg
226-
[build_hello-world.yaml]: https://github.com/stackabletech/docker-images/actions/workflows/build_hello-world.yaml
227224
[Build Hive]: https://github.com/stackabletech/docker-images/actions/workflows/build_hive.yaml/badge.svg
228225
[build_hive.yaml]: https://github.com/stackabletech/docker-images/actions/workflows/build_hive.yaml
229226
[Build Java Base]: https://github.com/stackabletech/docker-images/actions/workflows/build_java-base.yaml/badge.svg

0 commit comments

Comments
 (0)