get-platforms.sh 284 B

12345678
  1. #!/bin/bash
  2. supported=('linux/amd64')
  3. if [[ ${GITHUB_REF:-} =~ refs/heads/([5-9])\.([0-9]+)\.[0-9]+ ]] ; then
  4. if [[ "${BASH_REMATCH[1]}" -ge 6 ]] && [[ "${BASH_REMATCH[2]}" -ge 1 ]] ; then
  5. supported+=('linux/arm64')
  6. fi
  7. fi
  8. echo "${supported[*]}" | jq -R . | jq -c 'split(" ")'