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 2, 2024
1 parent d65e374 commit f5d8ae9
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/image-update.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,12 @@ jobs:
echo "$download_test_version - failed; skipping" >&2
continue
fi
jsonVersions="${jsonVersions}{'command':'${{matrix.image.command}}', 'version':'${versions[$i]}', 'digest':'$digest', 'checksum':'${{ steps.baseImage.outputs.checksum }}'}"
jsonVersions="${jsonVersions}{\
'command':'${{matrix.image.command}}',\
'version':'${versions[$i]}',\
'latest':'${versions[$((size-1))]}',\
'digest':'$digest',\
'checksum':'${{ steps.baseImage.outputs.checksum }}'}"
if (( $i < ($size-1) )); then
jsonVersions="${jsonVersions},"
fi
Expand Down Expand Up @@ -173,7 +178,7 @@ jobs:
result: "${{ steps.read.outputs.result }}"
versions: "${{steps.join.outputs.versions}}"

command:
build:
strategy:
matrix:
image: ${{ fromJson(needs.read.outputs.versions) }}
Expand All @@ -185,6 +190,7 @@ jobs:
echo ${{ matrix.image.version }}
echo ${{ matrix.image.digest }}
echo ${{ matrix.image.checksum }}
echo ${{ matrix.image.latest }}
# - uses: actions/checkout@v4
#
Expand Down

0 comments on commit f5d8ae9

Please sign in to comment.