Skip to content

Commit

Permalink
Update matrix for deploy-to-ckf-on-aks job
Browse files Browse the repository at this point in the history
  • Loading branch information
mvlassis committed Oct 22, 2024
1 parent 63f3bc4 commit 9df49a7
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions .github/workflows/deploy-to-aks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,18 +36,25 @@ jobs:
generate-bundle-versions-on-schedule:
if: ${{ github.event_name == 'schedule' }}
runs-on: ubuntu-22.04
run: |
# These are the versions that the scheduled workflow will run on
TARGET_VERSIONS="1.8, 1.9, latest"
bundle_versions=$(yq '. | keys | map(select(. == env(TARGET_VERSIONS).split(", ")[]))' .github/dependencies.yaml -o=json)
echo "bundle_versions=${bundle_versions}" >> $GITHUB_OUTPUT
steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Install CLI tools
run: |
sudo snap install yq
- name: Create JSON array of bundle versions
run: |
bundle_versions=$(yq '. | keys' .github/dependencies.yaml -o=json)
echo "bundle_versions=${bundle_versions}" >> $GITHUB_OUTPUT
deploy-ckf-to-aks:
needs: preprocess-input
runs-on: ubuntu-22.04
strategy:
matrix:
bundle_version: ${{ fromJSON(needs.preprocess-input.outputs.processed_bundle_versions) }}
bundle_version: ${{ fromJSON(needs.preprocess-input.outputs.processed_bundle_versions) || fromJSON(jobs.generate-bundle-versions-on-schedule.outputs.bundle_versions) }}
fail-fast: false
env:
AZURE_CORE_OUTPUT: none
Expand Down

0 comments on commit 9df49a7

Please sign in to comment.