Skip to content

Commit

Permalink
🤖 Use family to identify the isos
Browse files Browse the repository at this point in the history
Signed-off-by: Itxaka <[email protected]>
  • Loading branch information
Itxaka committed Oct 25, 2023
1 parent 29c7139 commit e678779
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,7 @@ jobs:
# flavorRelease: "3.18"
- flavor: opensuse
flavorRelease: leap-15.5
family: opensuse-leap
encryption:
uses: ./.github/workflows/reusable-encryption-test.yaml
with:
Expand Down Expand Up @@ -299,8 +300,10 @@ jobs:
include:
- flavor: "opensuse"
flavorRelease: "leap-15.5"
- flavor: "alpine"
flavorRelease: "3.18"
family: "opensuse-leap"
# cant do alpine yet as it hasnt been released with the proper name
#- flavor: "alpine"
# flavorRelease: "3.18"

notify:
runs-on: ubuntu-latest
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/reusable-provider-upgrade-latest-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ on:
flavor_release:
required: true
type: string
family:
required: true
type: string

jobs:
test:
Expand Down Expand Up @@ -54,7 +57,7 @@ jobs:
latest: true
repository: "kairos-io/kairos"
#fileName: 'kairos-standard-*${{ inputs.flavor }}-${{ inputs.flavor_release }}.*k3s1.iso' # Enable once we have a release with the new naming
fileName: 'kairos-standard-*${{ inputs.flavor }}.*k3s1.iso'
fileName: 'kairos-standard-${{ inputs.family }}.*k3s1.iso'
out-file-path: ""
- name: Run tests
run: |
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/reusable-upgrade-latest-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ on:
flavor_release:
required: true
type: string
family:
required: true
type: string

jobs:
test:
Expand Down Expand Up @@ -55,7 +58,7 @@ jobs:
# The default value is 'false'
latest: true
# TODO: This should change after we release with the new artifact names otherwise it won't work
fileName: 'kairos-core-${{ inputs.flavor }}*-amd64-generic-v*.iso'
fileName: 'kairos-core-${{ inputs.family }}*-amd64-generic-v*.iso'
out-file-path: ""
- name: Display structure of downloaded files
run: ls -las .
Expand All @@ -72,7 +75,7 @@ jobs:
# release-downloader globing matches more than one iso. Make sure
# we use the right one.
# TODO: This needs to be adapted after we release with the new artifact names
ISO=$(ls kairos-core-${{ inputs.flavor }}*-amd64-generic-v*.iso | grep -v ipxe)
ISO=$(ls kairos-core-${{ inputs.family }}-amd64-generic-v*.iso | grep -v ipxe | head -n 1)
earthly +run-qemu-test --PREBUILT_ISO=$ISO \
--FLAVOR=${{ inputs.flavor }} \
--CONTAINER_IMAGE=ttl.sh/kairos-${{ inputs.flavor }}-${{ inputs.flavor_release }}-${{ github.sha }}:24h \
Expand Down

0 comments on commit e678779

Please sign in to comment.