Skip to content

Commit

Permalink
fix: improve handling of zfs tag for hci images
Browse files Browse the repository at this point in the history
  • Loading branch information
bsherman committed Aug 10, 2023
1 parent ab204e5 commit f33860d
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -386,9 +386,9 @@ jobs:
coreos_version:
- stable
- testing
add_zfs:
- false
- true
zfs_tag:
- "-zfs"
- ""
pr_prefix:
- ${{ needs.build_info.outputs.pr_prefix }}
include:
Expand All @@ -407,10 +407,7 @@ jobs:
run: |
# Generate a timestamp for creating an image version history
TIMESTAMP="$(date +%Y%m%d)"
COREOS_VERSION="${{ matrix.coreos_version }}"
if [[ "${{ matrix.add_zfs }}" == "true" ]]; then
COREOS_VERSION="${{ matrix.coreos_version }}-zfs"
fi
COREOS_VERSION="${{ matrix.coreos_version }}${{ matrix.zfs_tag }}"
COMMIT_TAGS=()
BUILD_TAGS=()
Expand Down Expand Up @@ -468,7 +465,7 @@ jobs:
build-args: |
COREOS_VERSION=${{ matrix.coreos_version }}
PR_PREFIX=${{ matrix.pr_prefix }}
ZFS_TAG=${{ 'true' == matrix.add_zfs && '-zfs' || '' }}
ZFS_TAG=${{ matrix.zfs_tag }}
labels: ${{ steps.meta.outputs.labels }}
oci: false

Expand Down

0 comments on commit f33860d

Please sign in to comment.