forked from uraimo/run-on-arch-action
-
Notifications
You must be signed in to change notification settings - Fork 2
/
action.yml
45 lines (44 loc) · 2.14 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: 'Run on architecture'
branding:
icon: 'cpu'
color: 'green'
description: 'Run commands in a Linux container with a specific CPU architecture (armv6, armv7, aarch64, s390x, ppc64le)'
author: 'Umberto Raimondi, Elijah Shaw-Rutschman'
inputs:
arch:
description: 'CPU architecture: armv6, armv7, aarch64, s390x, ppc64le.'
required: false
default: 'aarch64'
distro:
description: 'Linux distribution name: ubuntu16.04, ubuntu18.04, ubuntu20.04, bullseye, buster, stretch, jessie, fedora_latest, alpine_latest, archarm_latest.'
required: false
default: 'ubuntu18.04'
githubToken:
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.'
required: true
default: ''
env:
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.'
required: false
default: ''
run:
description: 'Shell commands to execute in the container.'
required: true
shell:
description: 'The shell to run commands with in the container. Default: /bin/sh on alpine (because Alpine uses BusyBox), /bin/bash for other distros.'
required: false
default: ''
dockerRunArgs:
description: 'Additional arguments to pass to docker run, such as volume mappings. See README for example usage.'
required: false
setup:
description: 'Shell commands to execute on the host before running the container, such as creating directories for volume mappings. See README for example usage.'
required: false
default: ''
install:
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.'
required: false
default: ''
runs:
using: 'node12'
main: 'src/run-on-arch.js'