Skip to content

Commit

Permalink
Add gha
Browse files Browse the repository at this point in the history
Signed-off-by: Matthew DeVenny <[email protected]>
  • Loading branch information
matthewdevenny committed Oct 1, 2024
1 parent 13bbac9 commit 7684db5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/image-update.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,14 @@ jobs:
checksum=$(envsubst '${repo_digest}' < ./cicd/checksum/Dockerfile | sha256sum | cut -d' ' -f1)
echo "checksum=${checksum}\n" >> $GITHUB_OUTPUT
# calculate versions
versions=$(git ls-remote --tags "${{matrix.image.repo}}" \
versions=($(git ls-remote --tags "${{matrix.image.repo}}" \
| sed -r -n 's|.*refs/tags/v?(.*)$|\1|p' \
| xargs semver -r "${{ matrix.image.semverRange}}")
| xargs semver -r "${{ matrix.image.semverRange}}"))
IFS=$'\n'
size=${#versions[@]}
echo $size
jsonVersions="["
for i in "(${!versions[@]})"; do
for i in "${!versions[@]}"; do
jsonVersions="${jsonVersions}'${versions[$i]}'"
if (( $i < ($size-1) )); then
jsonVersions="${jsonVersions},"
Expand Down

0 comments on commit 7684db5

Please sign in to comment.