Skip to content

Commit

Permalink
refactor: tweaks to workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
bsherman committed Mar 27, 2024
1 parent dac3bc9 commit beaa0c4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/reusable-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,14 +74,14 @@ jobs:

- name: Matrix Variables
run: |
if [[ ${{ matrix.hwe_flavor }} == "main" ]]; then
if ${{ matrix.driver_version }} == "0" ]]; then
if [[ "${{ matrix.hwe_flavor }}" == "main" ]]; then
if "${{ matrix.driver_version }}" == "0" ]]; then
echo "this workflow does not build main image without Nvidia drivers"
exit 1
fi
echo "IMAGE_NAME=${{ matrix.image_name }}-nvidia" >> $GITHUB_ENV
else
echo "IMAGE_NAME=${{ matrix.image_name }}-${{ matrix.hwe_flavor }}${{ matrix.driver_version != "0" && '-nvidia' }}" >> $GITHUB_ENV
echo "IMAGE_NAME=${{ matrix.image_name }}-${{ matrix.hwe_flavor }}${{ matrix.driver_version != '0' && '-nvidia' }}" >> $GITHUB_ENV
fi
echo "SOURCE_IMAGE=${{ matrix.image_name }}-main" >> $GITHUB_ENV
Expand Down

0 comments on commit beaa0c4

Please sign in to comment.