action.yml 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. name: 'Run on architecture'
  2. branding:
  3. icon: 'cpu'
  4. color: 'green'
  5. description: 'Run commands in a Linux container with a specific CPU architecture (armv6, armv7, aarch64, s390x, ppc64le)'
  6. author: 'Umberto Raimondi, Elijah Shaw-Rutschman'
  7. inputs:
  8. arch:
  9. description: 'CPU architecture: armv6, armv7, aarch64, s390x, ppc64le.'
  10. required: false
  11. default: 'aarch64'
  12. distro:
  13. description: 'Linux distribution name: ubuntu16.04, ubuntu18.04, ubuntu20.04, bullseye, buster, stretch, jessie, fedora_latest, alpine_latest, archarm_latest.'
  14. required: false
  15. default: 'ubuntu18.04'
  16. githubToken:
  17. description: 'Your GitHub token, used for caching Docker images in your project''s public package registry. Usually this would just be $\{{ github.token }}. This speeds up builds and is highly recommended.'
  18. required: true
  19. default: ''
  20. env:
  21. description: 'Environment variables to propagate to the container. YAML, but must begin with a | character. These variables will be available in both run and setup.'
  22. required: false
  23. default: ''
  24. run:
  25. description: 'Shell commands to execute in the container.'
  26. required: true
  27. shell:
  28. description: 'The shell to run commands with in the container. Default: /bin/sh on alpine (because Alpine uses BusyBox), /bin/bash for other distros.'
  29. required: false
  30. default: ''
  31. dockerRunArgs:
  32. description: 'Additional arguments to pass to docker run, such as volume mappings. See README for example usage.'
  33. required: false
  34. setup:
  35. description: 'Shell commands to execute on the host before running the container, such as creating directories for volume mappings. See README for example usage.'
  36. required: false
  37. default: ''
  38. install:
  39. description: 'Shell commands to execute in the container as part of docker build, such as installing dependencies. This speeds up subsequent builds if githubToken is also used, but note that the image layer will be publicly available in your projects GitHub Package Registry, so make sure the resulting image does not have any secrets cached in logs or state.'
  40. required: false
  41. default: ''
  42. runs:
  43. using: 'node16'
  44. main: 'src/run-on-arch.js'