Skip to content

Commit

Permalink
ci: fix platform case statements
Browse files Browse the repository at this point in the history
Looks like this was copied from justfile without syntax adjustment.

Signed-off-by: Paul Meyer <[email protected]>
  • Loading branch information
katexochen committed Jan 2, 2025
1 parent 4e7c967 commit 9200f68
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/e2e_manual.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,13 @@ jobs:
outputs:
runner: ${{ steps.determine-platform-params.outputs.runner }}
self-hosted: ${{ steps.determine-platform-params.outputs.self-hosted }}
env:
platform: ${{ inputs.platform }}
steps:
- name: Determine Platform Parameters
id: determine-platform-params
run: |
case ${{ inputs.platform }} in
case "${platform}" in
"AKS-CLH-SNP")
echo "runner=ubuntu-22.04" >> "$GITHUB_OUTPUT"
echo "self-hosted=false" >> "$GITHUB_OUTPUT"
Expand All @@ -55,7 +57,7 @@ jobs:
echo "self-hosted=true" >> "$GITHUB_OUTPUT"
;;
*)
echo "Unsupported platform: {{ platform }}"
echo "Unsupported platform: ${platform}"
exit 1
;;
esac
Expand Down
4 changes: 2 additions & 2 deletions packages/scripts.nix
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@
pushd "$tmpdir" >/dev/null
case $platform in
case "$platform" in
"aks-clh-snp")
cp ${pkgs.microsoft.genpolicy.rules-coordinator}/genpolicy-rules.rego rules.rego
cp ${pkgs.microsoft.genpolicy.settings-coordinator}/genpolicy-settings.json .
Expand All @@ -265,7 +265,7 @@
${pkgs.kata.genpolicy}/bin/genpolicy < "$tmpdir/coordinator_base.yml"
;;
*)
echo "Unsupported platform: {{ platform }}" >&2
echo "Unsupported platform: $platform" >&2
exit 1
;;
esac
Expand Down

0 comments on commit 9200f68

Please sign in to comment.