-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #87 from emqx/prepare-for-5.1-builder-images
chore: prepare for 5.1 builder image
- Loading branch information
Showing
6 changed files
with
34 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/usr/bin/env bash | ||
|
||
## This script prints out all the possible emqx-builder docker image tags built from the latest git tag | ||
|
||
GREP='grep --color=never' | ||
ALL_SYS="$($GREP -A20 'platform:' .github/workflows/main.yaml | \ | ||
$GREP -E '\-\s?\[.*\]$' | \ | ||
tr -d '\- []"' | \ | ||
sed -e '/^#.*/d' | \ | ||
cut -d',' -f1 | \ | ||
sort -u)" | ||
|
||
GIT_TAG="$(git describe --abbrev=0 --tags)" | ||
OTP_VERSIONS="$($GREP -E "^\+\sOTP-.*" ./RELEASE.md | sed 's/\+\sOTP-//g')" | ||
ELIXIR_VERSIONS="$($GREP -E "^\+\sElixir-.*" ./RELEASE.md | sed 's/\+\sElixir-//g')" | ||
for elixir in $ELIXIR_VERSIONS; do | ||
for otp in $OTP_VERSIONS; do | ||
for sys in $ALL_SYS; do | ||
echo "ghcr.io/emqx/emqx-builder/${GIT_TAG}:${elixir}-${otp}-${sys}" | ||
done | ||
done | ||
done |