Skip to content

Commit

Permalink
Fix parsing each revision on generate-stackbrew-library.sh
Browse files Browse the repository at this point in the history
Signed-off-by: William Desportes <williamdes@wdes.fr>
  • Loading branch information
williamdes committed May 7, 2020
1 parent 490df18 commit 27f6f7e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions generate-stackbrew-library.sh
Expand Up @@ -65,6 +65,9 @@ latest="$(
| tail -1
)"

# Example: RELEASE_5_0_2^{}
latest=$(echo "$latest" | cut -d'_' -f2,3,4 | cut -d'^' -f1 | awk '{gsub("_","."); print}')

for variant in apache fpm fpm-alpine; do
commit="$(dockerfileCommit "$variant")"
fullversion="$(git show "$commit":"$variant/Dockerfile" | awk '$1 == "ENV" && $2 == "VERSION" { print $3; exit }')"
Expand Down

0 comments on commit 27f6f7e

Please sign in to comment.