Skip to content

Commit

Permalink
Update deploy-to-aks script
Browse files Browse the repository at this point in the history
  • Loading branch information
mvlassis committed Aug 23, 2024
1 parent 17ac670 commit 467e943
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion .github/workflows/deploy-to-aks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,31 @@ on:
schedule:
- cron: "17 0 * * 2"
jobs:
preprocess:
runs-on: ubuntu-22.04
outputs:
processed_bundle_versions: ${{ steps.process_bundle_versions.outputs.bundle_versions }}
steps:
- name: Process bundle versions
id: process_bundle_versions
run: |
# Ensure that bundle_version has a value, fallback to default if not
if [ -z "${{ github.event.inputs.bundle_version }}" ]; then
INPUT_VERSIONS="1.8,1.9,latest"
else
INPUT_VERSIONS="${{ github.event.inputs.bundle_version }}"
fi
# Convert the comma-separated values into a JSON array
JSON_ARRAY=$(echo "[\"${INPUT_VERSIONS//,/\",\"}\"]")
# Set the JSON array as an output
echo "bundle_versions=${JSON_ARRAY}" >> $GITHUB_OUTPUT
deploy-ckf-to-aks:
runs-on: ubuntu-22.04
strategy:
matrix:
bundle_version: ${{ fromJSON(format('["{0}"]', join('","', inputs.bundle_version.split(',')))) }}
bundle_version: ${{ fromJSON(needs.preprocess.outputs.processed_bundle_versions) }}
fail-fast: false
env:
AZURE_CORE_OUTPUT: none
Expand Down

0 comments on commit 467e943

Please sign in to comment.