Skip to content

Commit

Permalink
fix(github-action): fix broken metavar in test build
Browse files Browse the repository at this point in the history
  • Loading branch information
ajgon committed Aug 14, 2024
1 parent 63e8b0b commit 6ec08b5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,11 @@ jobs:
test_mute_cmd=$(jq '.testMuteCmd' --raw-output apps/${{ matrix.apps.app }}/metadata.json)
build_version=$(jq --arg chan ${{ matrix.apps.channel }} --raw-output '(.channels | .[] | select(.name == $chan)) | .version' ./apps/${{ matrix.apps.app }}/metadata.json)
baseimg_build_version=$(jq --arg chan ${{ matrix.apps.channel }} --raw-output '(.channels | .[] | select(.name == $chan)) | .baseimgversion' ./apps/${{ matrix.apps.app }}/metadata.json)
metavar=$(jq --arg chan ${{ matrix.apps.channel }} --raw-output '(.channels | .[] | select(.name == $chan)) | .metavar' ./apps/${{ matrix.apps.app }}/metadata.json)
echo "build_version=${build_version}" >> $GITHUB_OUTPUT
echo "baseimg_build_version=${baseimg_build_version}" >> $GITHUB_OUTPUT
echo "metavar=${metavar}" >> $GITHUB_OUTPUT
echo "goss_file=./apps/${{ matrix.apps.app }}/ci/goss.yaml" >> $GITHUB_OUTPUT
if [[ "${test_mute_cmd}" == true ]]; then
echo "goss_args=tail -f /dev/null" >> $GITHUB_OUTPUT
Expand Down Expand Up @@ -82,6 +84,7 @@ jobs:
with:
build-args: |-
BASEIMGVERSION=${{ steps.vars.outputs.baseimg_build_version }}
METAVAR=${{ steps.vars.outputs.metavar }}
VERSION=${{ steps.vars.outputs.build_version }}
CHANNEL=${{ matrix.apps.channel }}
context: apps/${{ matrix.apps.app }}
Expand Down

0 comments on commit 6ec08b5

Please sign in to comment.